/api/auth/
REST API endpoint: /api/auth/
/api/auth/
GET
Summary: Get user information for current session user
If the user is authorized the user information will be available in the "user" key. If not authorized then it will be a null value.
Responses
200
POST
Summary: Authorize user with given credentials and create a login session
Handle the current login session. Use this webmethod to login and logout yourself (as the current user)
or to get the authenticated session information.
Request Body
json{
"example": "request body"
}
Responses
400
403
DELETE
Summary: Log out currently authenticated user.
If not logged in, then do nothing. Always returns 204 (no content).
Responses
204
No response body