Config
Use the schema as the contract for valid gateway behavior before you deploy any routing changes. The schema defines every field the gateway accepts, including
When to use this
Key concepts
Repo-grounded example
{
"$schema": "./api-config.schema.json",
"title": "Minimal Gateway",
"cors": {
"allow_origins": ["https://app.example.com"],
"allow_methods": ["GET", "POST", "OPTIONS"],
"allow_headers": ["Content-Type", "Authorization"],
"expose_headers": ["X-Request-Id"],
"allow_credentials": true,
"max_age": 300
},
"paths": [
{
"method": "GET",
"path": "/health",
"response": { "status": "ok" }
}
]
}Troubleshooting
Related docs
Last updated