misc: added testing.http file

This commit is contained in:
Geoff Bourne 2020-05-04 18:01:04 -05:00
parent be33d2c9d1
commit e15221e6d7
3 changed files with 24 additions and 1 deletions

3
.gitignore vendored
View File

@ -4,4 +4,5 @@
/*.iml
/mc-router.exe
/mc-router
/dist/
/dist/
/*.private.env.json

7
http-client.env.json Normal file
View File

@ -0,0 +1,7 @@
{
"local": {
"baseUrl": "http://localhost:8080",
"serverAddress": "localhost",
"backend": "mc"
}
}

15
testing.http Normal file
View File

@ -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}}