Profile
GET Getting profile info
Path
/api/profile
Возвращает информацию о пользователе
Click to expand to see the details
cURL example:
curl --location 'https://barakat.tekmates.pro/api/profile'
--header 'Authorization: Bearer <token>' \
--header 'Content-Language: RU' \
Response Body:
{
"name": "Имя",
"middlename": "Отчество",
"surname": "Фамилия",
"phone": "+79991231232",
"birthday": "12.08.1999",
"email": "tekmates@gmail.com"
}
POST Create profile info
Path
/api/profile
Расширение информации о пользователе.
Click to expand to see the details
cURL Example:
curl --location --request POST 'https://barakat.tekmates.pro/api/profile' \
--header 'Content-Type: application/json' \
--header 'Content-Language: RU' \
--header 'Authorization: Bearer <token>' \
--data-raw '{
"name": "Имя",
"middlename": "Отчество",
"surname": "Фамилия",
"phone": "+79991231232",
"birthday": "12.08.1999",
"email": "tekmates@gmail.com"
}'
Request Body:
{
"name": "Имя",
"middlename": "Отчество",
"surname": "Фамилия",
"phone": "+79991231232",
"birthday": "12.08.1999",
"email": "tekmates@gmail.com"
}
Response Body:
{
"name": "Имя",
"middlename": "Отчество",
"surname": "Фамилия",
"phone": "+79991231232",
"birthday": "1999-12-08",
"email": "tekmates@gmail.com"
}
Post logout user
/api/logout
Сброс токена пользователя.
Click to expand to see the details
cURL Example:
curl --location --request PUT 'https://barakat.tekmates.pro/api/logout' \
--header 'Authorization: Bearer <token>' \
DELETE delete profile
/api/profile
Удаление профиля пользователя.
Click to expand to see the details
cURL Example:
curl --location --request DELETE 'https://barakat.tekmates.pro/api/profile' \
--header 'Authorization: Bearer <token>' \
Edited by Aleksandr Kosorukov