aboutsummaryrefslogtreecommitdiffstats
path: root/code/api
diff options
context:
space:
mode:
authorivarlovlie <git@ivarlovlie.no>2022-11-17 07:49:10 +0100
committerivarlovlie <git@ivarlovlie.no>2022-11-17 07:49:10 +0100
commit9ddd3471b4222f0d2deceb25b46f609407397a20 (patch)
treef1252eca300a9df475464d69ccc39a256f75a305 /code/api
parent0a3ca92417d9d0c293469c9d1777f78328c31720 (diff)
downloadgreatoffice-9ddd3471b4222f0d2deceb25b46f609407397a20.tar.xz
greatoffice-9ddd3471b4222f0d2deceb25b46f609407397a20.zip
feat: Add request files for development
Diffstat (limited to 'code/api')
-rw-r--r--code/api/src/Endpoints/Internal/Account/_calls.http9
-rw-r--r--code/api/src/Endpoints/Internal/PasswordResetRequests/_calls.http17
2 files changed, 26 insertions, 0 deletions
diff --git a/code/api/src/Endpoints/Internal/Account/_calls.http b/code/api/src/Endpoints/Internal/Account/_calls.http
new file mode 100644
index 0000000..78380f5
--- /dev/null
+++ b/code/api/src/Endpoints/Internal/Account/_calls.http
@@ -0,0 +1,9 @@
+### Login
+POST http://localhost:5000/_/account/login
+Content-Type: application/json
+
+{
+ "username": "i@oiee.no",
+ "password": "ivar123",
+ "persist": false
+}
diff --git a/code/api/src/Endpoints/Internal/PasswordResetRequests/_calls.http b/code/api/src/Endpoints/Internal/PasswordResetRequests/_calls.http
new file mode 100644
index 0000000..c400f49
--- /dev/null
+++ b/code/api/src/Endpoints/Internal/PasswordResetRequests/_calls.http
@@ -0,0 +1,17 @@
+### Create request
+POST http://localhost:5000/_/password-reset-request/create
+Accept: application/json
+Content-Type: application/json
+
+{
+ "email": ""
+}
+
+### Create request
+POST http://localhost:5000/_/password-reset-request/create
+Accept: application/json
+Content-Type: application/json
+
+{
+ "email": ""
+}