POST api/Nfc/NfcTagScanned

Request Information

URI Parameters

None.

Body Parameters

NfcTagScannedDTO
NameDescriptionTypeAdditional information
NfcTagUID

string

None.

ReaderSerialNumber

string

None.

SyncGuid

globally unique identifier

None.

SpecificProductList

Collection of NfcBoughtItemDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "NfcTagUID": "sample string 1",
  "ReaderSerialNumber": "sample string 2",
  "SyncGuid": "50a54f5b-f35c-45a6-9f48-f3dbfd05e2f6",
  "SpecificProductList": [
    {
      "ProductId": 1,
      "Count": 2
    },
    {
      "ProductId": 1,
      "Count": 2
    }
  ]
}

application/xml, text/xml

Sample:
<NfcTagScannedDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bluedock.Booking.Rest.Models.Nfc">
  <NfcTagUID>sample string 1</NfcTagUID>
  <ReaderSerialNumber>sample string 2</ReaderSerialNumber>
  <SpecificProductList>
    <NfcBoughtItemDTO>
      <Count>2</Count>
      <ProductId>1</ProductId>
    </NfcBoughtItemDTO>
    <NfcBoughtItemDTO>
      <Count>2</Count>
      <ProductId>1</ProductId>
    </NfcBoughtItemDTO>
  </SpecificProductList>
  <SyncGuid>50a54f5b-f35c-45a6-9f48-f3dbfd05e2f6</SyncGuid>
</NfcTagScannedDTO>

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.