Rest-API Interview Questions – 1

Q. What is the REST API? Why is REST stateless?  Q. What are the HTTP methods? Q. Difference between PUT VS PATCH?In HTTP, PUT replaces an entire resource, while PATCH updates specific fields within a resource, making PATCH a more efficient choice for partial updates. Here’s a more detailed explanation:…

Continue reading

Decorator Pattern

Problem: The explosion of classes occurs because of N number of combinations for a product, for example, pizza or coffee, which leads to inconsistency in the code like maintainability, scalability, and readability and also requires to addition of more combinations on the requirement. This violates the open-closed principle. If you…

Continue reading