0b134d8c47
Resolved #3
69 lines
1017 B
ReStructuredText
69 lines
1017 B
ReStructuredText
#Signup
|
|
POST https://dev-auth.eggtrainer.com/auth/signup HTTP/1.1
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"email": "kayneruse@gmail.com",
|
|
"username": "Ratstail91",
|
|
"password": "helloworld"
|
|
}
|
|
|
|
###
|
|
|
|
#Login
|
|
POST https://dev-auth.eggtrainer.com/auth/login HTTP/1.1
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"email": "kayneruse@gmail.com",
|
|
"password": "helloworld"
|
|
}
|
|
|
|
###
|
|
|
|
#Query data
|
|
GET https://dev-auth.eggtrainer.com/auth/account HTTP/1.1
|
|
Authorization: Bearer
|
|
|
|
###
|
|
|
|
#Logout
|
|
DELETE https://dev-auth.eggtrainer.com/auth/logout HTTP/1.1
|
|
Authorization: Bearer
|
|
|
|
{
|
|
"token": ""
|
|
}
|
|
|
|
###
|
|
|
|
#Refresh
|
|
POST https://dev-auth.eggtrainer.com/auth/token HTTP/1.1
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"token": ""
|
|
}
|
|
|
|
###
|
|
|
|
#Update account data
|
|
PATCH https://dev-auth.eggtrainer.com/auth/update HTTP/1.1
|
|
Content-Type: application/json
|
|
Authorization: Bearer
|
|
|
|
{
|
|
"contact": "true"
|
|
}
|
|
|
|
###
|
|
|
|
#Delete account
|
|
DELETE https://dev-auth.eggtrainer.com/auth/deletion HTTP/1.1
|
|
Authorization: Bearer
|
|
Content-Type: application/json
|
|
|
|
{
|
|
"password": "helloworld"
|
|
}
|