POST api/cntstockvac

Request Information

URI Parameters

None.

Body Parameters

CntStkVacRQT
NameDescriptionTypeAdditional information
IDUSer

integer

None.

IDRol

integer

None.

Entidad

string

None.

Request Formats

application/json, text/json

Sample:
{
  "IDUSer": 1,
  "IDRol": 2,
  "Entidad": "sample string 3"
}

text/xml

Sample:
<CntStkVacRQT xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContransAPI.Models">
  <Entidad>sample string 3</Entidad>
  <IDRol>2</IDRol>
  <IDUSer>1</IDUSer>
</CntStkVacRQT>

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

Response Information

Resource Description

CntStkVacRPS
NameDescriptionTypeAdditional information
Data

Collection of CntStkVacListRPS

None.

Response Formats

application/json, text/json

Sample:
{
  "Data": [
    {
      "Tipo": "sample string 1",
      "Cantidad": 2
    },
    {
      "Tipo": "sample string 1",
      "Cantidad": 2
    }
  ]
}

text/xml

Sample:
<CntStkVacRPS xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ContransAPI.Models">
  <Data>
    <CntStkVacListRPS>
      <Cantidad>2</Cantidad>
      <Tipo>sample string 1</Tipo>
    </CntStkVacListRPS>
    <CntStkVacListRPS>
      <Cantidad>2</Cantidad>
      <Tipo>sample string 1</Tipo>
    </CntStkVacListRPS>
  </Data>
</CntStkVacRPS>