Drongo_III Posted November 23, 2017 Share Posted November 23, 2017 (edited) Hi Guys I'm about to start a project building a lot of APIs. I've built basic REST APIs in the past but I mostly made up the standards for the API. I want to do this project properly from the start but I don't know whether there is an official 'standard' you should follow when creating a REST APIs? Like JavaScript has ECMA but I can't seem to find an api governing body as such and to be honest I've never known of one even after many years being a dev. Alternatively if that doesn't exist can anyone recommend good websites which highlight best practice? Thanks, Drongo Edited November 23, 2017 by Drongo_III Quote Link to comment Share on other sites More sharing options...
requinix Posted November 23, 2017 Share Posted November 23, 2017 There isn't one. Understand the basic HTTP verbs: - GET is for retrieving content without any other actions or side effects - POST is for making changes - PUT is also for making changes but "feels" more like putting or replacing content than causing it to be changed by some action; using POST for this stuff is fine too There's also - DELETE (obvious) which can be handled by POST - others most people don't use Then understand the HTTP status codes of which there are too many for me to list here. Then try looking at other REST APIs to see what they do. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.