Files
plantillas-proyectos/backend/api/v1/modules/a76/pedmientos/routes/pedimentos.py

25 lines
824 B
Python

"""
Routes for Pedimentos CRUD operations
"""
from api.v1.common.tenant_crud_routes import TenantCRUDRoutes
from ..dtos.pedimentos import PedimentosCreate, PedimentosResponse, PedimentosUpdate
from ..services.pedimentos import PedimentosService
# Create router with generic CRUD routes
router = TenantCRUDRoutes(
service=PedimentosService,
create_schema=PedimentosCreate,
update_schema=PedimentosUpdate,
response_schema=PedimentosResponse,
prefix="", # No prefix here, will be added in main router
tags=["a76 / pedimentos"], # Tag for Swagger documentation
resource_name="Pedimento",
id_name="pedimento_id",
enable_list=True, # Enable GET / with pagination
enable_filters=True, # Enable status, client_id, year filters
default_page_size=50,
max_page_size=100,
).router