Resource in REST API

In a REST API, a resource is a specific endpoint or endpoint location that the API can access and retrieve data from.

It is typically a noun that represents a collection of similar objects or a single instance of an object.

For example, in an e-commerce API, the resource could be “products” or “customers”.

The client can then use the API to retrieve, update, or delete data from that resource by making requests to the corresponding endpoint, such as

"GET /products" or "POST /customers".