Skip to main content

Documentation Index

Fetch the complete documentation index at: https://mintlify.com/ricpalomino/spring-boot/llms.txt

Use this file to discover all available pages before exploring further.

The list endpoint returns all products currently stored in the API. It always responds with HTTP 200, even when the store is empty — in that case, data contains an empty array. You do not need to pass any parameters to call this endpoint.

Request

curl --request GET \
  --url http://localhost:8080/api/v1/products

Response fields

responseCode
string
HTTP status code as a string (e.g., "200").
responseMessage
string
Human-readable message describing the result. Returns "Productos obtenidos correctamente" on success.
data
array
Array of product objects. Each item contains the following fields:

Success response — 200

{
  "responseCode": "200",
  "responseMessage": "Productos obtenidos correctamente",
  "data": [
    {
      "id": 1,
      "name": "Laptop Pro 15",
      "price": 1299.99
    },
    {
      "id": 2,
      "name": "Wireless Mouse",
      "price": 29.99
    },
    {
      "id": 3,
      "name": "USB-C Hub",
      "price": 49.99
    }
  ]
}

Empty store response — 200

When no products exist, data is an empty array and the HTTP status is still 200.
{
  "responseCode": "200",
  "responseMessage": "Productos obtenidos correctamente",
  "data": []
}

Build docs developers (and LLMs) love