From e15221e6d77f22b9802ef7041cb315d7f3c149b7 Mon Sep 17 00:00:00 2001 From: Geoff Bourne Date: Mon, 4 May 2020 18:01:04 -0500 Subject: [PATCH] misc: added testing.http file --- .gitignore | 3 ++- http-client.env.json | 7 +++++++ testing.http | 15 +++++++++++++++ 3 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 http-client.env.json create mode 100644 testing.http diff --git a/.gitignore b/.gitignore index 5bca125..fc19cc8 100644 --- a/.gitignore +++ b/.gitignore @@ -4,4 +4,5 @@ /*.iml /mc-router.exe /mc-router -/dist/ \ No newline at end of file +/dist/ +/*.private.env.json diff --git a/http-client.env.json b/http-client.env.json new file mode 100644 index 0000000..7f912ae --- /dev/null +++ b/http-client.env.json @@ -0,0 +1,7 @@ +{ + "local": { + "baseUrl": "http://localhost:8080", + "serverAddress": "localhost", + "backend": "mc" + } +} diff --git a/testing.http b/testing.http new file mode 100644 index 0000000..4001190 --- /dev/null +++ b/testing.http @@ -0,0 +1,15 @@ +### Get routes +GET {{baseUrl}}/routes +Accept: application/json + +### Create route +POST {{baseUrl}}/routes +Content-Type: application/json + +{ + "serverAddress": "{{serverAddress}}", + "backend": "{{backend}}:25565" +} + +### Delete route +DELETE {{baseUrl}}/routes/{{serverAddress}}