Simple http server written in python that is supposed to be used for mocking services.
- Starting server
Server starts on port 8000, this can be changed by changing server.py file.
- Adding/editing end points
Modify mockserver/config.py by creating function(s) that will accept one argument, which is BaseHTTPRequestHandler (check python documentation for more info) Then create mappings variable which is dict of dicts. First dictionary holds keys (urls without trailing forward slash) and value is dictionary where key is http request method (GET, POST etc.) and value is function that should get called.