-
Notifications
You must be signed in to change notification settings - Fork 10
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
RESTful API Design: 13 Best Practices to Make Your Users Happy #91
Comments
Great article! Thanks. |
Straight to the point 👍👍👍 |
Nice article! what about sorting? thanks. |
@syeikhanugrah |
Thank you for your effort, the article very clear and have great examples for easy understanding. |
👍👍👍, learned this article. |
NIce and easy explanation |
Nice one, very informative and well structured!! |
This is the best article I've seen REST API design guide. So simple and straightforward. |
I agree with not to use verb in URI. But what is the proper way to deal with the case below? A user sign up a new account and submit related document for identity verification. Endpoint for admin: We may have more than one action on a resource. Example:
My ideas as below but they seem like not proper.
Any thought? |
Yes, these are not proper.
I suggest an example. Edit user's partial information exampleRequest: [PATH] /users/12345
{
"new_password": "~~~~"
"new_address": "~~~"
}
Response
ConclusionRecommend that use API URI without verb, nested path (You can specify entity id, in this example Refer this document |
RESTful API Design: 13 Best Practices to Make Your Users Happy
First step to the RESTful way: make sure errors don't come back as 200 OK.
https://florimond.dev/blog/articles/2018/08/restful-api-design-13-best-practices-to-make-your-users-happy/
The text was updated successfully, but these errors were encountered: