POST api/CPPT/consultarCPPT?rutEmpresa={rutEmpresa}&idUsuario={idUsuario}

consultarCPPT

Request Information

URI Parameters

NameDescriptionTypeAdditional information
rutEmpresa

integer

Required

idUsuario

integer

Required

Body Parameters

ConsultaCPPT
NameDescriptionTypeAdditional information
idEmpresa

integer

None.

tipoRut_RSU

string

None.

valorRut_RSU

string

None.

fechaInicioConvenio

date

None.

fechaTerminoConvenio

date

None.

idLocacion

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "idEmpresa": 1,
  "tipoRut_RSU": "sample string 2",
  "valorRut_RSU": "sample string 3",
  "fechaInicioConvenio": "2019-03-25T18:50:27.7289219-03:00",
  "fechaTerminoConvenio": "2019-03-25T18:50:27.7445451-03:00",
  "idLocacion": 4
}

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 'ConsultaCPPT'.

Response Information

Resource Description

RespuestaConsultaCPPT
NameDescriptionTypeAdditional information
Estado

integer

None.

Mensaje

string

None.

detalle

Collection of QueryCPPT

None.

Response Formats

application/json, text/json

Sample:
{
  "estado": 1,
  "mensaje": "sample string 2",
  "detalle": [
    {
      "$id": "2",
      "idCPPT": 1,
      "rutEmpresa": 2,
      "rsu": "sample string 3",
      "fechainicio": "2019-03-25T18:50:27.9169806-03:00",
      "fechatermino": "2019-03-25T18:50:27.9169806-03:00",
      "canTurnos": 1,
      "rutPersona": 1,
      "idLocacion": 4,
      "lugar": "sample string 5",
      "horainiciodescanso": "00:00:00.1234567",
      "horaterminodescanso": "00:00:00.1234567",
      "activo": true,
      "iD_PUERTO": 6,
      "iD_CPPTPAPA": 1,
      "nombreConcesion": "sample string 7",
      "nombrE_INSTALACION": "sample string 8",
      "nombreEmpresa": "sample string 9",
      "rutaarchivocppt": "sample string 10",
      "idEmpresa": 11,
      "dvEmpresa": "sample string 12",
      "region": "sample string 13"
    },
    {
      "$ref": "2"
    }
  ]
}