thank you ! What method should we use for requests that neither return ( GET ) nor receive ( POST ) anything? For example, the endpoint of follow user Sorry, I can not speak English well
That was a nice read, thanks Ronald!
I have a question regarding point 6, why prefer a custom header for passing api keys when we could use standard Authorization header with bearer scheme?
It's hard to disagree with any of the bullets, but I think the most important of them is to be consistent. It will help both API consumers and the API developer(s).
Great article !
I'm in a bootcamp periode, after I read this article , honestly, work without something that not followed by standarization will make development phase getting long, I hope can implement this one on my next project, Thank you to share this 👍👍
Discovered some new things about API design. Interesting read I must say.
Great article Ronald!. Is there any free public API out there that you think that has a good design? I need it as a reference. Many thanks
Thank you, Ronald, for sharing. Definitely bookmarking this!
All reasonable suggestions except the versioning bit. Perhaps every long while you replace one api with another. In that case you either keep supporting to old one or force clients to move to the new one.
But while you have an api you have to keep your interfaces constant, support all the old signatures and add new ones as necessary.
Great article !
Do you have any recommandations on how to implement resource expansions/field selection with Sprint Boot ? I took a look at github.com/Cosium/spring-data-jpa-entity-graph which provides a way to fetch relationships at runtime but is only half of the problem.
This is a nice list! I have found that a good number of these points are covered by Microsoft’s OData standard (which hasn’t caught on in circles beyond Microsoft’s sphere of influence).
Otherwise, nice blog post
Great Tips! I just finished building a small API for a project, but I missed something as small as a health check, which looking at it further, is super important for this API. Awesome
This is really a good and useful article, everyone should read this before creating an API! Congrats 🎉
Awesome tips Ronald! Bookmarking this one for when I get deeper into the BE and have to think more seriously about API design!
LE Xie
This can be a great and very helpful checklist! Can I have you permission to translate this article into Chinese and put in my Wechat official account?Please let me know if this is ok.