ApiContext
class ApiContext(val env: Environment, val req: Request, val data: Data, val logger: Logger)(source)
A container for a bunch of relevant utility classes that may be needed when responding to an API call.
The classes can be used to query the current state of the API call as well as respond to it.
Properties
Link copied to clipboard
Readonly data store potentially populated by methods annotated with InitApi. See also: InitApiContext.
Link copied to clipboard
The current server environment, in case you need to branch logic in development vs production environments.