Added http test files

This commit is contained in:
kolaente 2018-07-25 22:26:53 +02:00 committed by konrad
parent 29e3afdd08
commit 4baf74a999
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
2 changed files with 13 additions and 0 deletions

10
REST-Tests/auth.http Normal file
View File

@ -0,0 +1,10 @@
### Authorization by token, part 1. Retrieve and save token.
POST http://localhost:8080/api/v1/login
Content-Type: application/json
{
"user": "user",
"password": "1234"
}
> {% client.global.set("auth_token", response.body.token); %}

View File

@ -0,0 +1,3 @@
# Get all namespaces
GET http://localhost:8080/api/v1/namespaces
Authorization: Bearer {{auth_token}}