"""
Endpoints API para gestión de partes (SCAII)
"""

from api.v1.common.tenant_crud_routes import TenantCRUDRoutes 

from .dto import PartCreateDTO, PartResponseDTO, PartUpdateDTO
from .service import PartService


router = TenantCRUDRoutes(
    service=PartService,
    create_schema=PartCreateDTO,
    update_schema=PartUpdateDTO,
    response_schema=PartResponseDTO,
    prefix="/parts",
    tags=["a76 / parts"],
    resource_name="Part",
    id_name="part_id",
    enable_list=True,
    enable_filters=True,
).router