summary refs log tree commit diff
path: root/endpoints.http
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2025-06-01 09:23:16 +0200
committerRory& <root@rory.gay>2025-06-01 09:23:16 +0200
commit073248777a6414505b1df7f65a0cb1dcf5c44118 (patch)
tree35c0c82c1841ee4c7434ada3c89c3e702561361a /endpoints.http
parentLogin, delete user (diff)
downloadnodejs-final-assignment-073248777a6414505b1df7f65a0cb1dcf5c44118.tar.xz
Update test client
Diffstat (limited to 'endpoints.http')
-rw-r--r--endpoints.http26
1 files changed, 26 insertions, 0 deletions
diff --git a/endpoints.http b/endpoints.http
new file mode 100644

index 0000000..cf0bf60 --- /dev/null +++ b/endpoints.http
@@ -0,0 +1,26 @@ +@baseUri=http://localhost:3000 +@username={{$randomInt}} +@email={{$randomInt}}@google.com + +POST {{baseUri}}/auth/register HTTP/1.1 +Content-Type: application/json + +{"username":"{{username}}","password":"password","email":"{{email}}","type":"monitor"} +### + +POST {{baseUri}}/auth/login HTTP/1.1 +Content-Type: application/json + +{"username":"{{username}}","password":"password"} +### + +POST {{baseUri}}/auth/logout HTTP/1.1 +Content-Type: application/json + +{"username":"{{username}}","password":"password"} +### + +DELETE {{baseUri}}/auth/delete +Content-Type: application/json + +{"username":"{{username}}","password":"password"}