from fastapi import APIRouter, status from typing import List router = APIRouter() @router.post("/login", status_code=status.HTTP_200_OK, response_model=List[str]) async def login(): names = ["John", "Jane", "Bob", "Alice", "Mike"] return names