An open API service indexing awesome lists of open source software.

https://github.com/subranag/mockaroo

Mock-A-🦘 (mock-aa-roo) a comprehensive HTTP/HTTPS interface mocking tool for all your development and testing needs!
https://github.com/subranag/mockaroo

developer-tools integration-testing interface-definitions productivity testing-tools

Last synced: 3 months ago
JSON representation

Mock-A-🦘 (mock-aa-roo) a comprehensive HTTP/HTTPS interface mocking tool for all your development and testing needs!

Awesome Lists containing this project

README

          

# Mock-a-(roo)🦘
comprehensive HTTP/HTTPS interface mocking tool for all your development and testing needs!
- supports complex request matching (path/query/headers/verb)
- mock response can be fully templated; with request body/query/header params in template context
- config language is *hashicorp HCL*, **human readable with single line and multiline comments**, perfect for documenting your interface
- mock complex HTTP API and send the mockaroo file to client developer for testing; communicate intent clearly; document your API
- run integration tests locally with ease
- add delays to mock real world response times
- full support for *generating fake data* using https://github.com/brianvoe/gofakeit
- support for HTTPS in case you need it

## Getting Started: Mock HTTP Server in under a minute
- Step 1: download mockaroo latest binary [here](https://github.com/subranag/mockaroo/releases) for your target platform and rename the file to `mockaroo` you wil have to do `chmod +x mockaroo` for darwin and linux
- Step 2: add this content to a file `mock.hcl`
```hcl
server {
listen_addr = "localhost:5000"
mock "hello_world" {
request {
path = "/hello/{userName}"
verb = "GET"
}
response {
body = <