Tuesday, 23 January 2024

Idempotent

 What does idempotent mean?

  • If we perform an operation multiple times but the results are the same always
  • The result remains unchanged regardless of how many times the operation

What does non-idempotent mean?

  • Perform the same operation multiple times but the results are different each time

What are the idempotent request types?

  • GET
  • PUT
  • DELETE
  • PATCH

What are the non idempotent request types?

  • POST





No comments:

Post a Comment

map online shopping status with REST API

  Example Sequence of API Calls Browse products : GET /products View product details : GET /products/12345 Add product to cart : POST /cart ...