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

https://github.com/rhaeguard/impostor

Impostor - a Mock HTTP Server
https://github.com/rhaeguard/impostor

http-server mock-server mock-webserver testing

Last synced: 2 months ago
JSON representation

Impostor - a Mock HTTP Server

Awesome Lists containing this project

README

          

# Impostor - Mock HTTP Server
To build and run the application:

`sudo docker build -t impostor --build-arg config='./config.yml' . && sudo docker run -p 8888:8888 -it impostor`

[**config.yml**](./config.yml) file is the configuration file template.

For each endpoint the following fields are available so far:

- *path* - obviously the path of the endpoint

- the path variables can be used inside the payload
- {path_variable_name:data_type}
- `path_variable_name` can be used inside the payload using `${path_variable_name}` construct.
- `data_type` so far can be either `number`, `string`
- *contentType* - contentType of the payload returned
- *method* - http method expected on that endpoint
- *payload* - what should be returned