diff --git a/endpoints/user.post.py b/endpoints/user.post.py index e69de29..48432ec 100644 --- a/endpoints/user.post.py +++ b/endpoints/user.post.py @@ -0,0 +1,21 @@ +from fastapi import APIRouter, HTTPException + +users = [] # In-memory storage + +router = APIRouter() + +@router.post("/user") +async def get_users(): + """Get all registered users endpoint""" + if not users: + raise HTTPException(status_code=404, detail="No users found") + + return { + "message": "Users retrieved successfully", + "users": users, + "total_users": len(users), + "next_steps": [ + "Filter users by status", + "Paginate results" + ] + } \ No newline at end of file