Wrote a couple simple tests

This commit is contained in:
2022-03-02 15:35:14 +00:00
parent 46152032bb
commit 89ea67456d
9 changed files with 8283 additions and 11 deletions
+70
View File
@@ -0,0 +1,70 @@
#Signup
POST http://127.0.0.1:3200/auth/signup HTTP/1.1
Content-Type: application/json
{
"email": "example@example.com",
"username": "Example",
"password": "helloworld"
}
###
#Login
POST http://127.0.0.1:3200/auth/login HTTP/1.1
Content-Type: application/json
{
"email": "example@example.com",
"password": "helloworld"
}
###
#Query data
GET http://127.0.0.1:3200/auth/account HTTP/1.1
Authorization: Bearer
###
#Logout
DELETE http://127.0.0.1:3200/auth/logout HTTP/1.1
Authorization: Bearer
{
"token": ""
}
###
#Refresh
POST http://127.0.0.1:3200/auth/token HTTP/1.1
Content-Type: application/json
{
"token": ""
}
###
#Update account data
PATCH http://127.0.0.1:3200/auth/update HTTP/1.1
Content-Type: application/json
Authorization: Bearer
{
"contact": "true"
}
###
#Delete account
DELETE http://127.0.0.1:3200/auth/deletion HTTP/1.1
Authorization: Bearer
Content-Type: application/json
{
"password": "helloworld"
}
###