POST api/Order/Get

Request Information

URI Parameters

None.

Body Parameters

OrderGetRequest
NameDescriptionTypeAdditional information
qrOrderContent

string

None.

idOrder

integer

None.

orderNumber

string

None.

isCreator

boolean

None.

isTransporter

boolean

None.

qrPicType

string

None.

Request Formats

application/json, text/json

Sample:
{
  "qrOrderContent": "sample string 1",
  "idOrder": 1,
  "orderNumber": "sample string 2",
  "isCreator": true,
  "isTransporter": true,
  "qrPicType": "sample string 3"
}

application/xml, text/xml

Sample:
<OrderGetRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Areas.Order.Model">
  <QrPicType xmlns="http://schemas.datacontract.org/2004/07/NMP3000Api.Models">sample string 3</QrPicType>
  <IsCreator>true</IsCreator>
  <IsTransporter>true</IsTransporter>
  <QrOrderContent>sample string 1</QrOrderContent>
</OrderGetRequest>

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

Response Information

Resource Description

OrderGetResponse
NameDescriptionTypeAdditional information
idOrder

integer

None.

orderType

string

None.

orderNumber

string

None.

orderJson

Collection of Object

None.

qrOrderPic

Collection of byte

None.

mesasge

string

None.

isSuccess

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "idOrder": 1,
  "orderType": "sample string 1",
  "orderNumber": "sample string 2",
  "orderJson": null,
  "qrOrderPic": "QEA=",
  "mesasge": "sample string 3",
  "isSuccess": true
}

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.