diff --git a/smoker.http b/smoker.http new file mode 100644 index 0000000..1ed86d6 --- /dev/null +++ b/smoker.http @@ -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 diff --git a/toxiproxy.http b/toxiproxy.http index c262051..11e657f 100644 --- a/toxiproxy.http +++ b/toxiproxy.http @@ -22,7 +22,7 @@ Content-Type: application/json "type": "latency", "stream": "downstream", "attributes": { - "latency": 750, + "latency": 1250, "jitter": 250 } }