POST api/Transport/Insert

Request Information

URI Parameters

None.

Body Parameters

TransportInsertRequest
NameDescriptionTypeAdditional information
transport

Collection of Object

None.

idWorkUnit

integer

None.

qrPicType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "transport": null,
  "idWorkUnit": 1,
  "qrPicType": "sample string 1"
}

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: Type 'Newtonsoft.Json.Linq.JToken' is a recursive collection data contract which is not supported. Consider modifying the definition of collection 'Newtonsoft.Json.Linq.JToken' to remove references to itself.

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

Response Information

Resource Description

TransportInsertResponse
NameDescriptionTypeAdditional information
idTransport

integer

None.

qrTransportPic

Collection of byte

None.

mesasge

string

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "idTransport": 1,
  "qrTransportPic": "QEA=",
  "mesasge": "sample string 2",
  "isSuccess": true
}

application/xml, text/xml

Sample:
<TransportInsertResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Transport.Models">
  <IsSuccess xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">true</IsSuccess>
  <Mesasge xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">sample string 2</Mesasge>
  <IdTransport>1</IdTransport>
</TransportInsertResponse>