INNER CODE UNIT · Python

health_check

stacklok/codegate · src/codegate/server.py:121

    async def health_check():
        return {"status": "healthy"}

    app.include_router(system_router)

    # CodeGate API
    app.include_router(v1, prefix="/api/v1", tags=["CodeGate API"])

    return app


def generate_openapi():
    app = init_app(Mock(spec=PipelineFactory))

    # Generate OpenAPI JSON
    openapi_schema = app.openapi()

    # Convert the schema to JSON string for easier handling or storage

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…