aboutsummaryrefslogtreecommitdiff
path: root/http
diff options
context:
space:
mode:
authorMarc Coquand <marc@mccd.space>2023-12-20 20:46:00 -0600
committerMarc Coquand <marc@mccd.space>2023-12-25 18:22:59 -0600
commit262f161f42c4e59beec41c6f440336c38385426a (patch)
tree6491c9b661a0b5a14c9a30ecf25e036f8762239d /http
parentcc783c157f31e7e713c8b83be67449b1859dac27 (diff)
downloadfixgen-262f161f42c4e59beec41c6f440336c38385426a.tar.gz
fixgen-262f161f42c4e59beec41c6f440336c38385426a.tar.bz2
fixgen-262f161f42c4e59beec41c6f440336c38385426a.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--http/login.hurl14
-rw-r--r--http/register.hurl7
2 files changed, 21 insertions, 0 deletions
diff --git a/http/login.hurl b/http/login.hurl
new file mode 100644
index 0000000..906cfe4
--- /dev/null
+++ b/http/login.hurl
@@ -0,0 +1,14 @@
+POST http://localhost:8080/v1/login
+{
+ "username": "wormhole",
+ "password": "12345678"
+}
+HTTP 200
+
+POST http://localhost:8080/v1/login
+{
+ "username": "wormhole",
+ "password": "1234567899"
+}
+HTTP 401
+
diff --git a/http/register.hurl b/http/register.hurl
new file mode 100644
index 0000000..bf2737d
--- /dev/null
+++ b/http/register.hurl
@@ -0,0 +1,7 @@
+POST http://localhost:8080/v1/register
+{
+ "username": "wormhole",
+ "password": "12345678"
+}
+
+HTTP 201