from fastapi import APIRouter, HTTPException, status from typing import List router = APIRouter() @router.get("/colour", status_code=200) async def get_colour(): """Get a list of colours""" colours = ["red", "blue", "green", "yellow", "purple", "orange"] return {"colours": colours}