-
Notifications
You must be signed in to change notification settings - Fork 1
API
Ivan Udovin edited this page Jan 1, 2021
·
12 revisions
Almost all API handlers require authorization.
Guest authorization used for handlers where no any authorization is required.
Password authorization is used only when we need to obtain new Session. In this case request body should have following JSON content:
{
"login": "{user.login}",
"password": "{user.password}"
}
If API handler allows this method of authorization then you should pass session
cookie with following content:
{session.id}_{session.secret}
POST /api/v0/register
Auth: Guest
.
-
login
(string
) -
password
(string
) -
email
(string
) -
first_name
(string?
) -
last_name
(string?
) -
middle_name
(string?
)
POST /api/v0/login
Auth: Password
.
-
login
,password
(string
) – for password auth.
DELETE /api/v0/logout
Auth: Session
.