jellytest

command
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2024 License: MIT Imports: 21 Imported by: 0

Documentation

Overview

Jellytest starts a jelly-based RESTServer that uses the pre-rolled jelly auth API as well as its own separate echo API.

Usage:

jellytest [flags]

Once started, the server will listen for HTTP requests and respond to them as configured. The main endpoints of interest are:

  • / - Request a reply with what the user said
  • /hello/nice - requests a polite greeting
  • /hello/rude - requests a rude greeting
  • /hello/random - requests a random greeting, either nice or rude
  • /hello/secret - requests a secret greeting that requires login

Additionally, the jelly auth API is started with its endpoints under /auth under the base URI for the server, if one is configured.

An authorized admin user is created by default with username and password both set to 'admin'. This can be used to create further users.

The flags are:

-c, --conf PATH
	Use the given file for the configuration instead of './jelly.yml'. The
	file must be in JSON or YAML format.

Directories

Path Synopsis
dao
Package dao provides data abstraction objects and database connection functions for the jellytest test server.
Package dao provides data abstraction objects and database connection functions for the jellytest test server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL