{"openapi":"3.1.0","info":{"title":"Mapping Intelligence Gateway","description":"API Gateway for routing requests to downstream services","version":"1.0.0"},"paths":{"/health":{"get":{"tags":["Health"],"summary":"Gateway Health Check","operationId":"gateway_health_check_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/auth/check":{"get":{"tags":["Auth"],"summary":"Check Token","description":"Check if the provided token is valid (not expired/revoked).\nRequires Authorization header with Bearer token.","operationId":"check_token_auth_check_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}},"/{path}":{"post":{"summary":"Gateway Proxy","description":"Gateway proxy endpoint that routes requests to downstream services.\n\nThe gateway:\n1. Validates JWT token\n2. Checks rate limits\n3. Forwards request to appropriate service (business or AI)\n4. Adds identity headers for downstream services\n\nArgs:\n    request: FastAPI request\n    path: The path portion of the URL\n\nReturns:\n    Proxied response from downstream service","operationId":"gateway_proxy__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"put":{"summary":"Gateway Proxy","description":"Gateway proxy endpoint that routes requests to downstream services.\n\nThe gateway:\n1. Validates JWT token\n2. Checks rate limits\n3. Forwards request to appropriate service (business or AI)\n4. Adds identity headers for downstream services\n\nArgs:\n    request: FastAPI request\n    path: The path portion of the URL\n\nReturns:\n    Proxied response from downstream service","operationId":"gateway_proxy__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"summary":"Gateway Proxy","description":"Gateway proxy endpoint that routes requests to downstream services.\n\nThe gateway:\n1. Validates JWT token\n2. Checks rate limits\n3. Forwards request to appropriate service (business or AI)\n4. Adds identity headers for downstream services\n\nArgs:\n    request: FastAPI request\n    path: The path portion of the URL\n\nReturns:\n    Proxied response from downstream service","operationId":"gateway_proxy__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"summary":"Gateway Proxy","description":"Gateway proxy endpoint that routes requests to downstream services.\n\nThe gateway:\n1. Validates JWT token\n2. Checks rate limits\n3. Forwards request to appropriate service (business or AI)\n4. Adds identity headers for downstream services\n\nArgs:\n    request: FastAPI request\n    path: The path portion of the URL\n\nReturns:\n    Proxied response from downstream service","operationId":"gateway_proxy__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"get":{"summary":"Gateway Proxy","description":"Gateway proxy endpoint that routes requests to downstream services.\n\nThe gateway:\n1. Validates JWT token\n2. Checks rate limits\n3. Forwards request to appropriate service (business or AI)\n4. Adds identity headers for downstream services\n\nArgs:\n    request: FastAPI request\n    path: The path portion of the URL\n\nReturns:\n    Proxied response from downstream service","operationId":"gateway_proxy__path__post","parameters":[{"name":"path","in":"path","required":true,"schema":{"type":"string","title":"Path"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"status":{"type":"string","title":"Status","description":"Service status: healthy, degraded, unhealthy","default":"healthy"},"service":{"type":"string","title":"Service","description":"Service name"},"version":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Version","description":"Service version"},"dependencies":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Dependencies","description":"Dependency service status"}},"type":"object","required":["service"],"title":"HealthResponse","description":"Health Check Response Model"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}}}}