feat(incidents): add incident lifecycle api and tests
This commit is contained in:
@@ -6,7 +6,7 @@ from typing import AsyncGenerator
|
||||
from fastapi import FastAPI
|
||||
from fastapi.openapi.utils import get_openapi
|
||||
|
||||
from app.api.v1 import auth, health
|
||||
from app.api.v1 import auth, health, incidents, org
|
||||
from app.config import settings
|
||||
from app.db import db, redis_client
|
||||
|
||||
@@ -35,6 +35,8 @@ app = FastAPI(
|
||||
|
||||
app.openapi_tags = [
|
||||
{"name": "auth", "description": "Registration, login, token lifecycle"},
|
||||
{"name": "org", "description": "Organization membership, services, and notifications"},
|
||||
{"name": "incidents", "description": "Incident lifecycle and timelines"},
|
||||
{"name": "health", "description": "Service health probes"},
|
||||
]
|
||||
|
||||
@@ -67,4 +69,6 @@ app.openapi = custom_openapi # type: ignore[assignment]
|
||||
|
||||
# Include routers
|
||||
app.include_router(auth.router, prefix=settings.api_v1_prefix)
|
||||
app.include_router(incidents.router, prefix=settings.api_v1_prefix)
|
||||
app.include_router(org.router, prefix=settings.api_v1_prefix)
|
||||
app.include_router(health.router, prefix=settings.api_v1_prefix, tags=["health"])
|
||||
|
||||
Reference in New Issue
Block a user