-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backend - API Convention: Data Structure, Error Handling, Response Codes #290
Comments
@mehmetkuzu did a great job to start @ https://github.com/bounswe/bounswe2023group2/wiki/API-conventions. |
Thanks. Good job. Just one point:
This probably is a common practice. But are you sure? Why not PUT /users/create or PUT /user/create ? These numbers (1). Are they really the best way? (Just asking to learn.) |
As far as i know, for example, POST is only used to create an entity, so URI like POST users/create/ is redundant, and basically means the same thing as POST users/ . Simlarly, PUT is only used to update an entity, therefore PUT users/id mean the same thing as PUT users/update/id defaultly. |
Thanks. That tells. But should we write: |
yes, 1 is just an example id. |
Thanks for your efforts! |
You are right. The message structure also should be revised. I will check that now. |
Can we close this one? (We can always update the document during the actual work) |
Seems great! Closing the issue. |
Issue Description
To maintain consistency, clarity, and efficient debugging across our services, we need to standardize the API convention. This documentation will detail the preferred data structures, methodologies for error handling, and guidelines on response codes.
Deadline of the Issue
17.10.2023
Reviewer
Begüm Arslan
The text was updated successfully, but these errors were encountered: