Basic Fixture API service
- Go 1.11+
- Go modules (for development)
see go.mod
see config.yml
Example:
pprof:
address: :6060
metrics:
address: :8090
log:
level: debug
format: console
api:
debug: true
address: :8080
shutdown_timeout: 10s
fixtures:
# good example
- method: GET
url: /fake-json-example
fixture: fixture.example.json
# good example
- method: POST
url: /fake-echo-example
echo: true
# will be ignored (combine fixture and echo unsupported)
- method: POST
url: /fake-echo-example
fixture: fixture.example.json
echo: true
# will be ignored (combine GET and echo unsupported)
- method: GET
url: /fake-echo-example
echo: true
- echo - puts POST request body to response, copy Content-Length
- fixture - file of fixture
- method - GET / POST / etc..
- url - url 🙂
echo
can't be combined with GETecho
can't be combined withfixture
any file contents
see License