cURL
curl --request GET \ --url https://api.example.com/api/Categoria/Lista
{ "status": true, "value": [ { "IdCategoria": 123, "Nombre": "<string>" } ], "msg": "<string>" }
GET /api/Categoria/Lista
Response<List<CategoriaDTO>>
curl -X GET "https://api.example.com/api/Categoria/Lista" \ -H "Content-Type: application/json"
{ "status": true, "value": [ { "idCategoria": 1, "nombre": "Electronics" }, { "idCategoria": 2, "nombre": "Clothing" }, { "idCategoria": 3, "nombre": "Food & Beverages" } ], "msg": null }
{ "status": false, "value": null, "msg": "Error message describing what went wrong" }