From 0b134d8c4749bd46e21505136828dd8e00f6524a Mon Sep 17 00:00:00 2001 From: Kayne Ruse Date: Sun, 7 Mar 2021 08:57:07 +1100 Subject: [PATCH] This is ready for publishing Resolved #3 --- .github/workflows/docker.yml | 1 - test/dev-auth-requests.rest | 68 ++++++++++++++++++++++++++++++++++++ 2 files changed, 68 insertions(+), 1 deletion(-) create mode 100644 test/dev-auth-requests.rest diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 4998063..1164b45 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -4,7 +4,6 @@ on: types: [ published ] push: tags: - - v0.* - v1.* jobs: push_to_registry: diff --git a/test/dev-auth-requests.rest b/test/dev-auth-requests.rest new file mode 100644 index 0000000..5b6d17e --- /dev/null +++ b/test/dev-auth-requests.rest @@ -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" +}