werkzeug-interceptor
Werkzeug-Interceptor allows you to mock specific endpoints based on the HTTP method name, endpoint, and response you define.
Usage
http_intercept -p 8000 '[{"methods": ["POST"], "path": "test-endpoint", "response": "Hello"}]'
curl -X POST -H "X-Access-Key: some-random-key" http://localhost:8000/test-endpoint
Development
Manages the dependencies using Rye
cd werkzeug-interceptor
rye sync
License
This project is licensed under the MIT License.