From af090bfeb80695293433c51609785575bbbb9c77 Mon Sep 17 00:00:00 2001 From: Phan Huy Tran Date: Wed, 2 Oct 2024 08:49:44 +0200 Subject: [PATCH] Line ending --- requests/GetBearerToken.http | 10 +++++----- requests/getProject.http | 15 +++++++++++++++ 2 files changed, 20 insertions(+), 5 deletions(-) create mode 100644 requests/getProject.http diff --git a/requests/GetBearerToken.http b/requests/GetBearerToken.http index abf7e94..f5209ca 100644 --- a/requests/GetBearerToken.http +++ b/requests/GetBearerToken.http @@ -1,6 +1,6 @@ -POST https://keycloak.szut.dev/auth/realms/szut/protocol/openid-connect/token -Content-Type: application/x-www-form-urlencoded - -grant_type=password&client_id=employee-management-service&username=user&password=test - +POST https://keycloak.szut.dev/auth/realms/szut/protocol/openid-connect/token +Content-Type: application/x-www-form-urlencoded + +grant_type=password&client_id=employee-management-service&username=user&password=test + > {% client.global.set("auth_token", response.body.access_token); %} \ No newline at end of file diff --git a/requests/getProject.http b/requests/getProject.http new file mode 100644 index 0000000..7b08e28 --- /dev/null +++ b/requests/getProject.http @@ -0,0 +1,15 @@ +### GET request to example server +POST http://localhost:8080/projects +Authorization: Bearer {{auth_token}} +Content-Type: application/json + +{ + "name": "name", + "leading_employee": 1, + "employees": [2, 3], + "contractor": 4, + "contractor_name": "Peter File", + "comment": "goal of project", + "start_date": "01.01.2000", + "planned_end_date": "01.01.2001" +} \ No newline at end of file