Idempotent REST APIs

If we make multiple identical requests and receive the same response every time, the APIs are generally called idempotent. Some API consumers knowingly or unknowingly make the same request twice or thrice. The APIs have to understand this and reply with the same response.

The point is that we have to build and deploy intelligent APIs. One trait of them is the idempotent APIs. We have to have idempotent REST APIs for all the standard HTTP operations, such as GET, PUT, and DELETE. Only POST APIs will not be idempotent.

As previously mentioned, RESTful communication takes place on the HTTP protocol, and the HTTP commands are being used by the REST client to interact with the REST server. This uniformity and simplicity works wonders for the faster and easier adoption of the REST paradigm, which becomes an important concept in the increasingly connected world.

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

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