Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

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.

Syntax

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

Response

Client Login


Client Logout

Client Status

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

  • No labels