User/Application Authentication

In some cases, there's no need for authentication in the API. There is a test route, that has been built for tests. Such calls can be made directly from a webbrowser, curl och postman. But in some cases authentication is required. This page covers logging in to get a JWT token, and how to get rid of it.

Registering a user

This router is for site owners only. It is used to create new API accounts. It actually requires that an owner has been created with this interface, which usually is being made when the API is installed for the first time.

Resource Information

POST /api/v1/account/user

Syntax

{
    "name":"UserClientName",
    "email":"clientContactMail@test.com",
    "password":"testPassword",
    "password_confirmation":"testPassword"
}

Response

Client Removal

Resource Information

DELETE /api/v1/account/user

Client Login

Resource Information

POST /api/v1/account/login

Client Logout

Resource Information

POST /api/v1/account/logout

Client Status

Resource Information

POST /api/v1/account/status

Returns information about the logged in client (currently only if the user is logged in or logged out)