API Documentation Library
1 min read

API Documentation Library

47 words

An interesting resource to have on hand when we need to document an API:

API Documentation Gallery

Where we have selected, very graphic examples of how to display the documentation of our APIs.

If you know of any interesting one, just make a pull request to:

github.com/yosriady/apidocs-gallery

Comments

Latest Posts

6 min

1149 words

Idempotency in Laravel: How to Avoid Duplicates in Your APIs with Elegance

In modern API development, one of the most critical challenges is ensuring that operations don’t execute multiple times accidentally. Imagine a user making a payment and, due to connectivity issues, clicking the “Pay” button multiple times. Without proper measures, you might process multiple payments for the same transaction. This is where idempotency comes into play.

What is Idempotency?

Idempotency is a mathematical concept applied to programming that guarantees that an operation produces the same result regardless of how many times it’s executed. In the context of APIs, it means you can make the same request multiple times without causing additional side effects.