Skip to content

Authorization

Andrei Grigortsev edited this page Dec 6, 2019 · 9 revisions

Authorization

type access route prefix
Public For everyone /auth

Routes

name access route type headers
Sign in public /signIn POST none
Sign up public /signUp POST none
Refresh authorized /refresh POST none
Log out authorized /logOut POST Authorization: Bearer <access token>
Log out from all devices authorized /logOutAll POST Authorization: Bearer <accesstoken>
Forgot password public /forgot POST none

JSON Schema

Sign in

#Request
{
	"email": "String",
	"password": "String"
}
#Response
{
	"access": "String",
	"refresh": "String"
}

Errors:

name description error const

Sign up

#Request
{
	"email": "String",
	"password": "String",
	"address": "String",
	"name": "String"
}
#Response
{
	"access": "String",
	"refresh": "String"
}

Errors:

name description error const

Clone this wiki locally