diff --git a/endpoints/users.get.py b/endpoints/users.get.py index e69de29..74ce25a 100644 --- a/endpoints/users.get.py +++ b/endpoints/users.get.py @@ -0,0 +1,21 @@ +from fastapi import APIRouter, HTTPException + +users = [] # In-memory storage + +router = APIRouter() + +@router.get("/users") +async def get_users(): + """Get all users endpoint""" + if not users: + raise HTTPException(status_code=404, detail="No users found") + + return { + "message": "Users retrieved successfully", + "users": users, + "count": len(users), + "features": { + "pagination": False, + "filtering": False + } + } \ No newline at end of file