Skip to main content
GET
/
api
/
Categoria
/
Lista
List Categories
curl --request GET \
  --url https://api.example.com/api/Categoria/Lista
{
  "status": true,
  "value": [
    {
      "IdCategoria": 123,
      "Nombre": "<string>"
    }
  ],
  "msg": "<string>"
}
Retrieves all categories in the system.

Endpoint

GET /api/Categoria/Lista

Request

This endpoint does not require any parameters.

Response

Returns a Response<List<CategoriaDTO>> wrapper containing the list of categories.
status
boolean
required
Indicates whether the request was successful
value
CategoriaDTO[]
Array of category objects
IdCategoria
integer
Unique identifier for the category
Nombre
string
Name of the category
msg
string
Error message if status is false, null otherwise

Example Request

curl -X GET "https://api.example.com/api/Categoria/Lista" \
  -H "Content-Type: application/json"

Example Response

Success Response
{
  "status": true,
  "value": [
    {
      "idCategoria": 1,
      "nombre": "Electronics"
    },
    {
      "idCategoria": 2,
      "nombre": "Clothing"
    },
    {
      "idCategoria": 3,
      "nombre": "Food & Beverages"
    }
  ],
  "msg": null
}
Error Response
{
  "status": false,
  "value": null,
  "msg": "Error message describing what went wrong"
}

Response Codes

CodeDescription
200Categories retrieved successfully
500Internal server error

Build docs developers (and LLMs) love