cURL
curl --request GET \ --url https://api.example.com/api/Rol/Lista
{ "status": true, "value": [ { "idRol": 123, "nombre": "<string>" } ], "msg": "<string>" }
GET /api/Rol/Lista
Show RolDTO properties
curl -X GET "https://api.example.com/api/Rol/Lista" \ -H "Content-Type: application/json"
{ "status": true, "value": [ { "idRol": 1, "nombre": "Administrador" }, { "idRol": 2, "nombre": "Empleado" }, { "idRol": 3, "nombre": "Supervisor" } ], "msg": null }
{ "status": false, "value": null, "msg": "Error retrieving roles list" }