diff --git a/endpoints/open.post.py b/endpoints/open.post.py index 0f35041..225454c 100644 --- a/endpoints/open.post.py +++ b/endpoints/open.post.py @@ -15,11 +15,11 @@ towns_in_arizona = [ "Surprise" ] -@router.post("/open", summary="Returns list of towns in Arizona") +@router.post("/open", status_code=200) async def get_towns_in_arizona(): - """Returns list of towns in Arizona""" + """Endpoint that returns list of towns in Arizona""" if request.method != "POST": - raise HTTPException(status_code=405, detail="Method not allowed") + raise HTTPException(status_code=405, detail="Method Not Allowed") return { "method": "POST",