Mock API/Call Translation - proxy server for testing changes to http servers API.
make build
/make install
to build/installmact
executable form sourcemact --config=<PATH TO CONFIG YAML> --port=<PORT TO LISTEN ON>
to run proxy server
Example config file:
services:
- host: "http://localhost:8080"
trustAllCerts: true
endpoints:
- path: /ping
verb: "GET"
statusCodes: # list of status codes for which responses will be processed
- 200
changes:
- type: add # suported types are add, modify, remove
field: example.field # json field path
value: {"test": value} # json value (ignored for 'remove' type)