# 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_api_fast.models.extra_models import TokenModel  # noqa: F401
from ecp4_api_fast.models.ev_list import EvList


router = APIRouter(prefix="/v1")


@router.get(
    "/evs",
    responses={
        200: {"model": EvList, "description": "successful operation"},
        405: {"description": "Invalid input"},
    },
    tags=["ev"],
    response_model_by_alias=True,
)
async def get_evs(
    plug: int
 = Query(..., description="get vehicle by plug index")
,
    ev_id: str
 = Query(..., description="get vehicle by id  (only CCS)")
,
) -> EvList:
    """Get a list of connected vehicles and their metrics"""
    ...
