From 8829c1eee38ba32730896a269eadf2631e26db05 Mon Sep 17 00:00:00 2001 From: Rory& Date: Mon, 2 Jun 2025 00:11:34 +0200 Subject: Add shortcut for generating http file, part of API documentation --- endpoints.old.http | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 endpoints.old.http (limited to 'endpoints.old.http') diff --git a/endpoints.old.http b/endpoints.old.http new file mode 100644 index 0000000..93a4b53 --- /dev/null +++ b/endpoints.old.http @@ -0,0 +1,28 @@ +@baseUri=http://localhost:3000 +@username={{$randomInt}} +@email={{$randomInt}}@google.com + +GET {{baseUri}} HTTP/1.1 + +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"} -- cgit 1.5.1