diff --git a/REST-Tests/auth.http b/REST-Tests/auth.http new file mode 100644 index 0000000000..2227961c0f --- /dev/null +++ b/REST-Tests/auth.http @@ -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); %} diff --git a/REST-Tests/namespaces.http b/REST-Tests/namespaces.http new file mode 100644 index 0000000000..0b4e86f71e --- /dev/null +++ b/REST-Tests/namespaces.http @@ -0,0 +1,3 @@ +# Get all namespaces +GET http://localhost:8080/api/v1/namespaces +Authorization: Bearer {{auth_token}} \ No newline at end of file