POST api/POCDOP/DOPBarCodes

Request Information

URI Parameters

None.

Body Parameters

Collection of DOPBarCodesList
NameDescriptionTypeAdditional information
barcode

string

None.

scantype

string

None.

location

string

None.

timestamp

string

None.

locationGeocode

string

None.

mode

string

None.

createdby

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "barcode": "sample string 1",
    "scantype": "sample string 2",
    "location": "sample string 3",
    "timestamp": "sample string 4",
    "locationGeocode": "sample string 5",
    "mode": "sample string 6",
    "createdby": "sample string 7"
  },
  {
    "barcode": "sample string 1",
    "scantype": "sample string 2",
    "location": "sample string 3",
    "timestamp": "sample string 4",
    "locationGeocode": "sample string 5",
    "mode": "sample string 6",
    "createdby": "sample string 7"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPOCDOPController.DOPBarCodesList xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SDP_Support.Controllers">
  <POCDOPController.DOPBarCodesList>
    <barcode>sample string 1</barcode>
    <createdby>sample string 7</createdby>
    <location>sample string 3</location>
    <locationGeocode>sample string 5</locationGeocode>
    <mode>sample string 6</mode>
    <scantype>sample string 2</scantype>
    <timestamp>sample string 4</timestamp>
  </POCDOPController.DOPBarCodesList>
  <POCDOPController.DOPBarCodesList>
    <barcode>sample string 1</barcode>
    <createdby>sample string 7</createdby>
    <location>sample string 3</location>
    <locationGeocode>sample string 5</locationGeocode>
    <mode>sample string 6</mode>
    <scantype>sample string 2</scantype>
    <timestamp>sample string 4</timestamp>
  </POCDOPController.DOPBarCodesList>
</ArrayOfPOCDOPController.DOPBarCodesList>

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