GET api/CPPT/getCPPT?idCPPT={idCPPT}&rutEmpresa={rutEmpresa}&idUsuario={idUsuario}

getCPPT

Request Information

URI Parameters

NameDescriptionTypeAdditional information
idCPPT

integer

Required

rutEmpresa

integer

Required

idUsuario

integer

Required

Body Parameters

None.

Response Information

Resource Description

CPPT
NameDescriptionTypeAdditional information
idCPPT

integer

None.

idEmpresa

integer

None.

idPuerto

integer

Required

nombrePuerto

string

None.

parte

string

None.

RSUCodigo

string

None.

RSUNombre

string

None.

fechaInicioConvenio

date

Required

fechaTerminoConvenio

date

None.

canTurnosMes1

integer

Range: inclusive between 0 and 99999

canTurnosMes2

integer

Range: inclusive between 0 and 99999

canTurnosMes3

integer

Range: inclusive between 0 and 99999

formaAviso

FormaAviso

None.

adjunto

string

Required

nomina

Collection of NominaCPPT

None.

fechaCreacion

date

None.

idUsuario

integer

None.

idCPPTPadre

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "idCPPT": 1,
  "idEmpresa": 2,
  "idPuerto": 3,
  "nombrePuerto": "sample string 4",
  "parte": "sample string 5",
  "rsuCodigo": "sample string 6",
  "rsuNombre": "sample string 7",
  "fechaInicioConvenio": "2019-10-17T21:27:57.3756372-04:00",
  "fechaTerminoConvenio": "2019-10-17T21:27:57.3756372-04:00",
  "canTurnosMes1": 8,
  "canTurnosMes2": 9,
  "canTurnosMes3": 10,
  "formaAviso": {
    "$id": "2",
    "telefono": true,
    "email": true,
    "carta": true,
    "otroGlosa": "sample string 4"
  },
  "adjunto": "sample string 11",
  "nomina": [
    {
      "$id": "3",
      "idNominaCPPT": 1,
      "rut": 2,
      "dv": "sample string 3",
      "idLabor": 4,
      "glosaLabor": "sample string 5",
      "idFuncion": 6,
      "glosaFuncion": "sample string 7",
      "idLocacion": 8,
      "glosaLocacion": "sample string 9",
      "horaInicio": "sample string 10",
      "idPersona": 11,
      "nombres": "sample string 12",
      "apellidos": "sample string 13"
    },
    {
      "$ref": "3"
    }
  ],
  "fechaCreacion": "2019-10-17T21:27:57.3918353-04:00",
  "idUsuario": 12,
  "idCPPTPadre": 13
}