Exploring the checklist for building RESTful APIs
Cloud computing and microservices are almost certain to follow RESTful API design as a rule for its implementations. The stateless nature of these APIs allows these services to be redeployed easily, whenever they're needed.
The following tables serve as a design and implementation checklist for all RESTful API developers:
- Model domain actions using HTTP methods: Earlier in this chapter, you understood that the operations that are supported by a REST API can be modeled as HTTP operations on a specified resource. Hence, it is a common practice to enumerate the various actions that will be allowed on a domain entity, and then map those different HTTP methods to indicate the operation to be performed on the requested resource, as identified by the request URI:Â Â
- Ensure that all the supported features are CRUD in nature: RESTful APIs typically update any backend database system...