====test==== Given form data expected in request body and valid data sent then return OK ====spec==== { "info": { "name": "Test" }, "item": [ { "id": "3b4f5a70-2a8f-46ba-a04b-a6f80621ad3f", "request": { "url": { "path": ["path"] }, "header": [ { "key": "Content-Type", "value": "application/x-www-form-urlencoded" } ], "body": { "mode": "urlencoded", "urlencoded": [ { "key": "id", "value": 100 }, { "key": "status", "value": "open" } ] }, "method": "POST" }, "response": [ { "code": 200, "description": "OK", "header": [ { "key": "Content-Type", "value": "text/plain" } ], "body": "ok" } ] } ] } ====server==== mock -p 4010 ${document} ====command==== curl -i -X POST http://localhost:4010/path -H "Content-Type: application/x-www-form-urlencoded" --data "id=123&status=open" ====expect==== HTTP/1.1 200 OK content-type: text/plain ok