-
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
2 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ on: | |
types: [ published ] | ||
push: | ||
tags: | ||
- v0.* | ||
- v1.* | ||
jobs: | ||
push_to_registry: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
#Signup | ||
POST https://dev-auth.eggtrainer.com/auth/signup HTTP/1.1 | ||
Content-Type: application/json | ||
|
||
{ | ||
"email": "[email protected]", | ||
"username": "Ratstail91", | ||
"password": "helloworld" | ||
} | ||
|
||
### | ||
|
||
#Login | ||
POST https://dev-auth.eggtrainer.com/auth/login HTTP/1.1 | ||
Content-Type: application/json | ||
|
||
{ | ||
"email": "[email protected]", | ||
"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" | ||
} |