Level 1 – resources

Here, the API distinguishes between multiple resources using different URLs. However, there is still typically only one method (POST) of interaction. This is better than the previous level because now there is a hierarchical definition of resources. Instead of going through /hotels, now the API assigns IDs to each hotel and uses that to see which hotel the request is for, so the API will have URLs of the /hotels/<id> form.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset