Package nzilbb.labbcat.server.api
Class User
- java.lang.Object
-
- nzilbb.labbcat.server.api.APIRequestHandler
-
- nzilbb.labbcat.server.api.User
-
public class User extends APIRequestHandler
/api/user : information about the current user.Allows access to information about the current user, returning a JSON-encoded objects with the following attributes:
- user
- ID of the user.
- roles
- An array of strings, which are the roles or groups the user belongs to.
Only the GET HTTP method is supported:
- GET
-
- Response Body - the standard JSON envelope, with the model as an object with the above structure.
- Response Status n- 200 : Success.
- Author:
- Robert Fromont
-
-
Field Summary
-
Fields inherited from class nzilbb.labbcat.server.api.APIRequestHandler
SC_BAD_REQUEST, SC_CONFLICT, SC_FORBIDDEN, SC_INTERNAL_SERVER_ERROR, SC_METHOD_NOT_ALLOWED, SC_NOT_FOUND, SC_OK, SC_UNPROCESSABLE_CONTENT, SC_UNSUPPORTED_MEDIA_TYPE
-
-
Constructor Summary
Constructors Constructor Description User()
Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
get(javax.json.stream.JsonGenerator jsonOut)
Generate the response to a request.-
Methods inherited from class nzilbb.labbcat.server.api.APIRequestHandler
GetSystemAttribute, init, writeResponse
-
-