Example Shunt
Template for creating fake service connectors for testing.
Usage
# Run the shunt
python main.py
# Or with uvicorn
uvicorn main:app --port 8099 --reload
Creating a New Shunt
-
Copy this directory:
cp -r shunts/example shunts/mercadopago -
Edit
depot/responses.jsonwith fake responses -
Update
main.pyto match the real vein's API endpoints
Configuration
Edit depot/responses.json to configure fake responses:
{
"GET /endpoint": {"response": "data"},
"POST /endpoint": {"success": true}
}
The shunt UI at / shows current configuration.