Swagger Mock generator Setup pip3 install -r requirements.txt Generate mock python3 gen_mock.py examples/example.yaml Test case The the X-Mock-Case header can be use to switch among the different allowed status code as server response.