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
- Host: GitHub
- URL: https://github.com/rhaeguard/impostor
- Owner: rhaeguard
- Created: 2020-01-29T17:13:26.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-02-04T18:48:26.000Z (over 6 years ago)
- Last Synced: 2025-12-26T19:35:36.906Z (6 months ago)
- Topics: http-server, mock-server, mock-webserver, testing
- Language: Java
- Size: 18.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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