POST api/Relacionlab/consultarRelacionLaboral?rutEmpresa={rutEmpresa}&idUsuario={idUsuario}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
rutEmpresa

integer

Required

idUsuario

integer

Required

Body Parameters

ContratoFiltro
NameDescriptionTypeAdditional information
rutTrabajador

string

None.

pasaporte

string

None.

fechaInicioContrato

date

None.

fechaTerminoContrato

date

None.

estadoContrato

string

None.

Request Formats

application/json, text/json

Sample:
{
  "rutTrabajador": "sample string 1",
  "pasaporte": "sample string 2",
  "fechaInicioContrato": "2019-05-22T03:42:39.9461807-04:00",
  "fechaInicioContratoSpecified": true,
  "fechaTerminoContrato": "2019-05-22T03:42:39.9461807-04:00",
  "fechaTerminoContratoSpecified": true,
  "estadoContrato": "sample string 5"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'ContratoFiltro'.

Response Information

Resource Description

ContratoConsulta
NameDescriptionTypeAdditional information
Estado

integer

None.

Mensaje

string

None.

contratoConsultaDetalle

Collection of ContratoConsultaDetalle

None.

Response Formats

application/json, text/json

Sample:
{
  "estado": 1,
  "mensaje": "sample string 2",
  "contratoConsultaDetalle": [
    {
      "$id": "2",
      "idContrato": 1,
      "idTipoContrato": 1,
      "nombreTipoContrato": "sample string 1",
      "rutPersona": 1,
      "dvPersona": "sample string 2",
      "pasaporte": "sample string 3",
      "nombres": "sample string 4",
      "apellidoPaterno": "sample string 5",
      "apellidoMaterno": "sample string 6",
      "fechaInicioContrato": "2019-05-22T03:42:40.2002367-04:00",
      "fechaFinContrato": "2019-05-22T03:42:40.2002367-04:00",
      "remuneracionBruta": 1,
      "activo": true,
      "horasExtras": 1
    },
    {
      "$ref": "2"
    }
  ]
}