From 64295db0e7939a515af893cc3dfa41f5a2ad37ee Mon Sep 17 00:00:00 2001 From: Jim Martens Date: Wed, 16 Aug 2023 20:08:54 +0200 Subject: [PATCH] Added environments for http requests --- http-requests/calculate-result.http | 2 +- http-requests/get-elections.http | 2 ++ http-requests/http-client.env.json | 8 ++++++++ 3 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 http-requests/get-elections.http create mode 100644 http-requests/http-client.env.json diff --git a/http-requests/calculate-result.http b/http-requests/calculate-result.http index 829082e..2609338 100644 --- a/http-requests/calculate-result.http +++ b/http-requests/calculate-result.http @@ -1,4 +1,4 @@ -POST http://localhost:12000/wahlrecht/v1/calculate +POST {{backend}}/wahlrecht/v1/calculate Content-Type: application/json { diff --git a/http-requests/get-elections.http b/http-requests/get-elections.http new file mode 100644 index 0000000..8246367 --- /dev/null +++ b/http-requests/get-elections.http @@ -0,0 +1,2 @@ +GET {{backend}}/wahlrecht/v1/elections +Content-Type: application/json diff --git a/http-requests/http-client.env.json b/http-requests/http-client.env.json new file mode 100644 index 0000000..cc88e0c --- /dev/null +++ b/http-requests/http-client.env.json @@ -0,0 +1,8 @@ +{ + "dev": { + "backend": "http://localhost:12000" + }, + "prod" : { + "backend": "https://api.2martens.de" + } +} \ No newline at end of file