@@ -4,7 +4,6 @@ on:
|
|||||||
types: [ published ]
|
types: [ published ]
|
||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- v0.*
|
|
||||||
- v1.*
|
- v1.*
|
||||||
jobs:
|
jobs:
|
||||||
push_to_registry:
|
push_to_registry:
|
||||||
|
|||||||
@@ -0,0 +1,68 @@
|
|||||||
|
#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"
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user