I need to write a very simple web site. There will be no frontend side, the site should only give several API endpoints — the only request is that it should work with JSON serialized data. So I don't have to worry about html, css, js.
There should be API endpoints that return info about some entries. The user should be able to request some specific entry with id, or to get list of all entires. The number of entries can be huge, so there should be some paging.
Some users should be able to edit enties.
So this is a super common task. I can easily implement it by writing all the things by myself, but this time I don't want to reinvetnt the wheel, I want to use as much already created things as possible.
I will use JSON (this is the reqirement), but what other things should I use? I known something about REST, but maybe there is something simplier? What API versioning scheme should be implemented? How should I show errors? How should I check authorization?
All my questions are not about internatl implementation, but about the way the API will look like for the user. There are a lot of ways of solving this task, but maybe there are some well established simple things that should be used?
In reply to Standards for JSON API by bessarabov
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |