mirror of
https://github.com/itzg/mc-router.git
synced 2024-11-23 11:45:28 +01:00
misc: added testing.http file
This commit is contained in:
parent
be33d2c9d1
commit
e15221e6d7
1
.gitignore
vendored
1
.gitignore
vendored
@ -5,3 +5,4 @@
|
||||
/mc-router.exe
|
||||
/mc-router
|
||||
/dist/
|
||||
/*.private.env.json
|
||||
|
7
http-client.env.json
Normal file
7
http-client.env.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"local": {
|
||||
"baseUrl": "http://localhost:8080",
|
||||
"serverAddress": "localhost",
|
||||
"backend": "mc"
|
||||
}
|
||||
}
|
15
testing.http
Normal file
15
testing.http
Normal 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}}
|
Loading…
Reference in New Issue
Block a user