POST api/UploadController/UploadMultiScannerFile

Request Information

URI Parameters

None.

Body Parameters

ScannerNetworkUpload
NameDescriptionTypeAdditional information
user

string

None.

password

string

None.

data

Collection of NetworkDatum

None.

Request Formats

application/json, text/json

Sample:
{
  "user": "sample string 1",
  "password": "sample string 2",
  "data": [
    {
      "scanner": "sample string 1",
      "lat": 1.1,
      "lon": 1.1,
      "scans": [
        {
          "rfid": "sample string 1",
          "time": "sample string 2",
          "session": "sample string 3",
          "lat": 1.1,
          "lon": 1.1,
          "measures": [
            {
              "measure": {
                "type": "sample string 1",
                "value": "sample string 2"
              }
            },
            {
              "measure": {
                "type": "sample string 1",
                "value": "sample string 2"
              }
            }
          ]
        },
        {
          "rfid": "sample string 1",
          "time": "sample string 2",
          "session": "sample string 3",
          "lat": 1.1,
          "lon": 1.1,
          "measures": [
            {
              "measure": {
                "type": "sample string 1",
                "value": "sample string 2"
              }
            },
            {
              "measure": {
                "type": "sample string 1",
                "value": "sample string 2"
              }
            }
          ]
        }
      ]
    },
    {
      "scanner": "sample string 1",
      "lat": 1.1,
      "lon": 1.1,
      "scans": [
        {
          "rfid": "sample string 1",
          "time": "sample string 2",
          "session": "sample string 3",
          "lat": 1.1,
          "lon": 1.1,
          "measures": [
            {
              "measure": {
                "type": "sample string 1",
                "value": "sample string 2"
              }
            },
            {
              "measure": {
                "type": "sample string 1",
                "value": "sample string 2"
              }
            }
          ]
        },
        {
          "rfid": "sample string 1",
          "time": "sample string 2",
          "session": "sample string 3",
          "lat": 1.1,
          "lon": 1.1,
          "measures": [
            {
              "measure": {
                "type": "sample string 1",
                "value": "sample string 2"
              }
            },
            {
              "measure": {
                "type": "sample string 1",
                "value": "sample string 2"
              }
            }
          ]
        }
      ]
    }
  ]
}

application/xml, text/xml

Sample:
<ScannerNetworkUpload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TransactionDatabaseConnector">
  <data>
    <NetworkDatum>
      <lat>1.1</lat>
      <lon>1.1</lon>
      <scanner>sample string 1</scanner>
      <scans>
        <JSONScan>
          <lat>1.1</lat>
          <lon>1.1</lon>
          <measures>
            <Measure>
              <measure>
                <type>sample string 1</type>
                <value>sample string 2</value>
              </measure>
            </Measure>
            <Measure>
              <measure>
                <type>sample string 1</type>
                <value>sample string 2</value>
              </measure>
            </Measure>
          </measures>
          <rfid>sample string 1</rfid>
          <session>sample string 3</session>
          <time>sample string 2</time>
        </JSONScan>
        <JSONScan>
          <lat>1.1</lat>
          <lon>1.1</lon>
          <measures>
            <Measure>
              <measure>
                <type>sample string 1</type>
                <value>sample string 2</value>
              </measure>
            </Measure>
            <Measure>
              <measure>
                <type>sample string 1</type>
                <value>sample string 2</value>
              </measure>
            </Measure>
          </measures>
          <rfid>sample string 1</rfid>
          <session>sample string 3</session>
          <time>sample string 2</time>
        </JSONScan>
      </scans>
    </NetworkDatum>
    <NetworkDatum>
      <lat>1.1</lat>
      <lon>1.1</lon>
      <scanner>sample string 1</scanner>
      <scans>
        <JSONScan>
          <lat>1.1</lat>
          <lon>1.1</lon>
          <measures>
            <Measure>
              <measure>
                <type>sample string 1</type>
                <value>sample string 2</value>
              </measure>
            </Measure>
            <Measure>
              <measure>
                <type>sample string 1</type>
                <value>sample string 2</value>
              </measure>
            </Measure>
          </measures>
          <rfid>sample string 1</rfid>
          <session>sample string 3</session>
          <time>sample string 2</time>
        </JSONScan>
        <JSONScan>
          <lat>1.1</lat>
          <lon>1.1</lon>
          <measures>
            <Measure>
              <measure>
                <type>sample string 1</type>
                <value>sample string 2</value>
              </measure>
            </Measure>
            <Measure>
              <measure>
                <type>sample string 1</type>
                <value>sample string 2</value>
              </measure>
            </Measure>
          </measures>
          <rfid>sample string 1</rfid>
          <session>sample string 3</session>
          <time>sample string 2</time>
        </JSONScan>
      </scans>
    </NetworkDatum>
  </data>
  <password>sample string 2</password>
  <user>sample string 1</user>
</ScannerNetworkUpload>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TransactionStatus
NameDescriptionTypeAdditional information
Status

string

None.

Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Status": "sample string 1",
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<TransactionStatus xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InFieldScannerWebSite.Models">
  <Message>sample string 2</Message>
  <Status>sample string 1</Status>
</TransactionStatus>