Registration
{
“email”: string,
“username”: string,
“password”: string
}
curl --location --request POST 'https://cub.it/api/v1/user/new' \
--header 'Content-Type: application/json' \
--data-raw '{
“email”: “template.email@gmail. com”,
“username”: “Alex”,
“password”: “Aa123456”
}'
HTTP status code: 200
{
"token": "cabef633-3b34-45db-801f-d5b21b9e7bee",
"userId": "21489"
}
Authorization
{
“email”: string,
“password”: string
}
curl --location --request POST 'https://cub.it/login' \
--header 'Content-Type: application/json' \
--data-raw '{
“email”: “template.email@gmail.com”,
“password”: “Aa123456”
}'
HTTP status code: 200
{
"token": "cabef633-3b34-45db-801f-d5b21b9e7bee",
"userId" : "21489"
}