Autorisation
After successful registration or authentication, the API returns an object containing user data and a token. This token must be used for authentication with other endpoints.
Registration
POST
https://api.megoru.ru/api/registration
Headers
Name
Value
Content-Type
application/json
Body
Name
Type
Description
name
string
Name of the user
password
string
Password
email
string
User Email
Response
Login
POST
https://api.megoru.ru/api/login
Headers
Name
Value
Content-Type
application/json
Body
Name
Type
Description
email
string
User Email
password
string
User password
Response
Last updated