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/42
with a file located attestdata/sample.json
and set the content type header toapplication/json
. - Respond to
POST /api/v1/account/42/withdraw
with a JSON body{"name":"Ted.Tester"}
- this also sets the content type toapplication/json