diff options
Diffstat (limited to 'http')
-rw-r--r-- | http/login.hurl | 14 | ||||
-rw-r--r-- | http/register.hurl | 7 |
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 |