microservices-with-fastapi icon indicating copy to clipboard operation
microservices-with-fastapi copied to clipboard

Update main.py

Open theflyfoxX opened this issue 6 months ago • 0 comments

  • 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

theflyfoxX avatar Jun 22 '25 22:06 theflyfoxX