Class 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
    • Constructor Detail

      • User

        public User()
        Constructor
    • Method Detail

      • get

        public void get​(javax.json.stream.JsonGenerator jsonOut)
        Generate the response to a request.

        This returns information about the current user - their ID and the roles they have.

        Parameters:
        jsonOut - A JSON generator for writing the response to.