Here's the FastAPI endpoint for the GET /tHashad route: from fastapi import APIRouter, status from typing import List router = APIRouter() @router.get("/tHashad", status_code=status.HTTP_200_OK, response_model=List[MovieSchema]) async def get_movies(): """Get all movies""" movies = get_all_movies() return movies