This commit is contained in:
2025-11-04 06:39:35 +01:00
parent 92586359e6
commit ddf2d1ea5f
2 changed files with 33 additions and 1 deletions

32
smoker.http Normal file
View 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

View File

@@ -22,7 +22,7 @@ Content-Type: application/json
"type": "latency",
"stream": "downstream",
"attributes": {
"latency": 750,
"latency": 1250,
"jitter": 250
}
}