Plain HTTP configuration
As already mentioned, the plain HTTP server configuration is the easiest way to get started. To set up a simple HTTP server stub, you can start with the following configuration:
In the above snippet are two rules configured:
- Respond to
GET /api/v1/account/42with a file located attestdata/sample.jsonand set the content type header toapplication/json. - Respond to
POST /api/v1/account/42/withdrawwith a JSON body{"name":"Ted.Tester"}- this also sets the content type toapplication/json