Smoker
This commit is contained in:
32
smoker.http
Normal file
32
smoker.http
Normal file
@@ -0,0 +1,32 @@
|
||||
POST https://smocker_admin.localhost/mocks
|
||||
Content-Type: application/x-yaml
|
||||
|
||||
- request:
|
||||
method: GET
|
||||
path: /hello/world
|
||||
response:
|
||||
status: 200
|
||||
headers:
|
||||
Content-Type: application/json
|
||||
body: >
|
||||
{
|
||||
"message": "Hello, World!"
|
||||
}
|
||||
|
||||
- request:
|
||||
method: POST
|
||||
path: /hello/world
|
||||
response:
|
||||
status: 500
|
||||
headers:
|
||||
Content-Type: application/json
|
||||
body: >
|
||||
{
|
||||
"message": "error"
|
||||
}
|
||||
|
||||
### Test GET
|
||||
GET https://smocker.localhost/hello/world
|
||||
|
||||
### Test POST
|
||||
POST https://smocker.localhost/hello/world
|
||||
@@ -22,7 +22,7 @@ Content-Type: application/json
|
||||
"type": "latency",
|
||||
"stream": "downstream",
|
||||
"attributes": {
|
||||
"latency": 750,
|
||||
"latency": 1250,
|
||||
"jitter": 250
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user