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.
Click to show internal directories.
Click to hide internal directories.