feat(api): Pydantic schemas + Data Repositories
This commit is contained in:
50
app/schemas/__init__.py
Normal file
50
app/schemas/__init__.py
Normal file
@@ -0,0 +1,50 @@
|
||||
"""Pydantic schemas for request/response models."""
|
||||
|
||||
from app.schemas.auth import (
|
||||
LoginRequest,
|
||||
RefreshRequest,
|
||||
RegisterRequest,
|
||||
SwitchOrgRequest,
|
||||
TokenResponse,
|
||||
)
|
||||
from app.schemas.common import CursorParams, PaginatedResponse
|
||||
from app.schemas.incident import (
|
||||
CommentRequest,
|
||||
IncidentCreate,
|
||||
IncidentEventResponse,
|
||||
IncidentResponse,
|
||||
TransitionRequest,
|
||||
)
|
||||
from app.schemas.org import (
|
||||
MemberResponse,
|
||||
NotificationTargetCreate,
|
||||
NotificationTargetResponse,
|
||||
OrgResponse,
|
||||
ServiceCreate,
|
||||
ServiceResponse,
|
||||
)
|
||||
|
||||
__all__ = [
|
||||
# Auth
|
||||
"LoginRequest",
|
||||
"RefreshRequest",
|
||||
"RegisterRequest",
|
||||
"SwitchOrgRequest",
|
||||
"TokenResponse",
|
||||
# Common
|
||||
"CursorParams",
|
||||
"PaginatedResponse",
|
||||
# Incident
|
||||
"CommentRequest",
|
||||
"IncidentCreate",
|
||||
"IncidentEventResponse",
|
||||
"IncidentResponse",
|
||||
"TransitionRequest",
|
||||
# Org
|
||||
"MemberResponse",
|
||||
"NotificationTargetCreate",
|
||||
"NotificationTargetResponse",
|
||||
"OrgResponse",
|
||||
"ServiceCreate",
|
||||
"ServiceResponse",
|
||||
]
|
||||
Reference in New Issue
Block a user