auth
DELETE /api/auth/
Summary: Log out currently authenticated user.
If not logged in, then do nothing. Always returns 204 (no content).
Responses
- 204 — No response body
GET /api/auth/
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 —
-
Media type:
application/json
Type: AuthInfo
POST /api/auth/
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
- Media type:
application/json
Type: AuthShort
- Media type:
application/x-www-form-urlencoded
Type: AuthShort
- Media type:
multipart/form-data
Type: AuthShort
Responses
-
400 —
-
Media type:
application/json
Type: Detail
-
403 —
-
Media type:
application/json
Type: Detail