# coding: utf-8

from typing import Dict, List  # noqa: F401

from fastapi import (  # noqa: F401
    APIRouter,
    Body,
    Cookie,
    Depends,
    Form,
    Header,
    Path,
    Query,
    Response,
    Security,
    status,
)

from ecp4_msi_api_fast.models.extra_models import TokenModel  # noqa: F401
from ecp4_msi_api_fast.models.error_response import ErrorResponse


router = APIRouter(prefix="http://localhost:9292/v1")


@router.get(
    "/can",
    responses={
        200: {"model": List[str], "description": "CAN IDs retrieved successfully"},
        500: {"model": ErrorResponse, "description": "Internal Server Error - Unexpected server issue"},
    },
    tags=["can"],
    summary="List CAN nodes",
    response_model_by_alias=True,
)
async def get_can_ids(
) -> List[str]:
    """Retrieve a list of all valid CAN IDs."""
    ...
