Skip to content

Authentication

Siyuan Zhang | 张豆 edited this page Oct 11, 2019 · 1 revision

Login

Login and get a Token.

HTTP Request

POST /api/v1/auth

Request Parameters

Parameter Type Default Description
username string null
password string null

Response

{
    "token":"..."
}

Register

HTTP Request

POST /api/v1/register

Request Parameters

Parameter Default Description
username null Unique
password null
email null Unique

Response


Refresh Token

HTTP Request

GET /api/v1/refresh

Response

{
    "token":"..."
}