...
- Endpoint:
/acreditaciones/ejecutar
- Method:
POST
- Description: Executes an accreditation.
- Headers:
API-KEY: BMMyeLpIomvnnGwmN8IOydFCON4AQelKTIY4C44Fljg8AjFled
Request Body:
Code Block language py title json linenumbers true { "acreditacion": { "usuario": "test1", "idAcreditacion":274 } }
Response Body:
Code Block language py title json linenumbers true { "header": { "codReturn": 0, "txtReturn": "SUCCESS" }, "data": { "descripcion": "Se proceso correctamente" } }
...
Manejo de errores
- Common HTTP Status Codes:
200 OK
: The request was successful.400 Bad Request
: The request could not be understood or was missing required parameters.401 Unauthorized
: Authentication failed or user does not have permissions for the desired action.404 Not Found
: The requested resource could not be found.500 Internal Server Error
: An error occurred on the server.
Example Usage
...
Ejemplos de uso
Ejemplos de como consumir por curl:
AltaColaborador
Code Block | ||||||||
---|---|---|---|---|---|---|---|---|
| ||||||||
curl -X POST "http://localhost:8080/ApiDimoEmpresaJavaEnvironment/rest/colaboradores/alta" \ -H "API-KEY: BMMyeLpIomvnnGwmN8IOydFCON4AQelKTIY4C44Fljg8AjFled" \ -H "Content-Type: application/json" \ -d '{ "data": { "nroDocumento": 4040440, "nombres": "Arturo", "apellidos": "Sosa Bagnoli", "nroTelefono": "0971159618", "correo": "asosa@cabal.com.py" } }' |
...