POST LimpiezaApi/Empleado/Login
Validamos si existe el empleado según su usuario y contraseña. Mensaje de error si no existe.
Request Information
URI Parameters
None.
Body Parameters
Usuario y contraseña
LoginDto| Name | Description | Type | Additional information |
|---|---|---|---|
| Usuario | string |
Required |
|
| Password | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"Usuario": "sample string 1",
"Password": "sample string 2"
}
application/x-www-form-urlencoded
Sample:
Sample not available.
application/xml, text/xml
Sample:
<LoginDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Comunes"> <Password z:Id="2">sample string 2</Password> <Usuario z:Id="3">sample string 1</Usuario> </LoginDto>
Response Information
Resource Description
EmpleadoLimpiezaDto
EmpleadoLimpiezaDto| Name | Description | Type | Additional information |
|---|---|---|---|
| IdEmpleado | integer |
None. |
|
| TieneAccesoListaServicios | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"IdEmpleado": 1,
"TieneAccesoListaServicios": true
}
application/xml, text/xml
Sample:
<EmpleadoLimpiezaDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" z:Id="1" xmlns:z="http://schemas.microsoft.com/2003/10/Serialization/" xmlns="http://schemas.datacontract.org/2004/07/Sofycom.Sofygest.Service.Application.Models.Dtos.Limpieza"> <IdEmpleado>1</IdEmpleado> <TieneAccesoListaServicios>true</TieneAccesoListaServicios> </EmpleadoLimpiezaDto>