POST api/NewRequisitions

Request to submit new Requisitions

Request Information

URI Parameters

None.

Body Parameters

Requisitions: List of the requisitions to submit

Collection of ExternalRequisition
NameDescriptionTypeAdditional information
COD_REQUISICAO

Requisition identifier (must be unique)

string

None.

NUM_REQUISITANTE

Number of the request user (currently not used)

integer

None.

NOME_REQUISITANTE

Name of the request user (currently not used)

string

None.

CODIGO

Material Code (must exist in the system´s database)

string

None.

DESCRICAO

Material Description (must exist in the system´s database)

string

None.

QUANT

Material Quantity

integer

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "COD_REQUISICAO": "sample string 1",
    "NUM_REQUISITANTE": 2,
    "NOME_REQUISITANTE": "sample string 3",
    "CODIGO": "sample string 4",
    "DESCRICAO": "sample string 5",
    "QUANT": 6
  },
  {
    "COD_REQUISICAO": "sample string 1",
    "NUM_REQUISITANTE": 2,
    "NOME_REQUISITANTE": "sample string 3",
    "CODIGO": "sample string 4",
    "DESCRICAO": "sample string 5",
    "QUANT": 6
  }
]

application/xml, text/xml

Sample:
<ArrayOfExternalRequisition xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BioSterizAPI.Models">
  <ExternalRequisition>
    <CODIGO>sample string 4</CODIGO>
    <COD_REQUISICAO>sample string 1</COD_REQUISICAO>
    <DESCRICAO>sample string 5</DESCRICAO>
    <NOME_REQUISITANTE>sample string 3</NOME_REQUISITANTE>
    <NUM_REQUISITANTE>2</NUM_REQUISITANTE>
    <QUANT>6</QUANT>
  </ExternalRequisition>
  <ExternalRequisition>
    <CODIGO>sample string 4</CODIGO>
    <COD_REQUISICAO>sample string 1</COD_REQUISICAO>
    <DESCRICAO>sample string 5</DESCRICAO>
    <NOME_REQUISITANTE>sample string 3</NOME_REQUISITANTE>
    <NUM_REQUISITANTE>2</NUM_REQUISITANTE>
    <QUANT>6</QUANT>
  </ExternalRequisition>
</ArrayOfExternalRequisition>

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 'List`1'.

Response Information

Resource Description

HttpResponseMessage

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.