POST api/Order/Insert

Request Information

URI Parameters

None.

Body Parameters

OrderInsertRequest
NameDescriptionTypeAdditional information
orderNumber

string

Required

orderJson

Collection of Object

Required

qrTransportContent

string

None.

qrPicType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "orderNumber": "sample string 1",
  "orderJson": null,
  "qrTransportContent": "sample string 2",
  "qrPicType": "sample string 3"
}

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

Response Information

Resource Description

OrderInsertResponse
NameDescriptionTypeAdditional information
idOrder

integer

None.

qrOrderPic

Collection of byte

None.

mesasge

string

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "idOrder": 1,
  "qrOrderPic": "QEA=",
  "mesasge": "sample string 2",
  "isSuccess": true
}

application/xml, text/xml

Sample:
<OrderInsertResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Order.Model">
  <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>
  <IdOrder>1</IdOrder>
</OrderInsertResponse>