Resource-centric

The API should be organized around resources. As mentioned earlier, resources are the key abstraction of information so a service makes them available to its clients. The internal structure of a resource should not leak through the APIs. For example, the details of an order might be stored separately in a relational database, so we should not create multiple resources to mirror that internal structure. APIs should focus on business entities and use resources as the abstraction to hide implementation details, making the API implementation evolvable.

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

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