summaryrefslogtreecommitdiffstats
path: root/api/http
diff options
context:
space:
mode:
Diffstat (limited to 'api/http')
-rw-r--r--api/http/http-client.env.json5
-rw-r--r--api/http/login.http17
2 files changed, 22 insertions, 0 deletions
diff --git a/api/http/http-client.env.json b/api/http/http-client.env.json
new file mode 100644
index 0000000..af19690
--- /dev/null
+++ b/api/http/http-client.env.json
@@ -0,0 +1,5 @@
+{
+ "dev": {
+ "canonical": "http://localhost:5281"
+ }
+} \ No newline at end of file
diff --git a/api/http/login.http b/api/http/login.http
new file mode 100644
index 0000000..8ebba0c
--- /dev/null
+++ b/api/http/login.http
@@ -0,0 +1,17 @@
+### GET request to example server
+POST {{canonical}}/login
+
+{
+ "username": "",
+ "password": ""
+}
+
+### Create user
+POST {{canonical}}/create-user
+Content-Type: application/json
+
+{
+ "name": "ivarsu",
+ "email": "ivarsu@oiee.no",
+ "password": "ivargangertre"
+}