Skip to content

Commit

Permalink
This is ready for publishing
Browse files Browse the repository at this point in the history
Resolved #3
  • Loading branch information
Ratstail91 committed Mar 6, 2021
1 parent 6283185 commit 0b134d8
Show file tree
Hide file tree
Showing 2 changed files with 68 additions and 1 deletion.
1 change: 0 additions & 1 deletion .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
types: [ published ]
push:
tags:
- v0.*
- v1.*
jobs:
push_to_registry:
Expand Down
68 changes: 68 additions & 0 deletions test/dev-auth-requests.rest
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"
}

0 comments on commit 0b134d8

Please sign in to comment.