microservices-with-fastapi
microservices-with-fastapi copied to clipboard
Update main.py
- Change status code to 200 OK unless you are creating a token/session. change 409 to 404, 409 CONFLICT is used when there's a conflict endpoint get users update : -> Explicitly checks if the requester identity is missing -> Ensures only valid users can access the endpoint (optional but recommended) -> Use limit offset , to prevent overwhelming the client -> Adds validation to ensure values are within acceptable ranges