POST api/UploadController/UploadFileWithToken
Request Information
URI Parameters
None.
Body Parameters
ScannerUploadName | Description | Type | Additional information |
---|---|---|---|
scanner | string |
None. |
|
user | string |
None. |
|
password | string |
None. |
|
diagnostics | Diagnostics |
None. |
|
data | Collection of Datum |
None. |
Request Formats
application/json, text/json
Sample:
{ "scanner": "sample string 1", "user": "sample string 2", "password": "sample string 3", "diagnostics": { "inteference": "sample string 1", "memoryfree": 2, "minutesuptime": 3 }, "data": [ { "scan": { "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" } } ] } }, { "scan": { "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:
<ScannerUpload xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TransactionDatabaseConnector"> <data> <Datum> <scan> <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> </scan> </Datum> <Datum> <scan> <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> </scan> </Datum> </data> <diagnostics> <inteference>sample string 1</inteference> <memoryfree>2</memoryfree> <minutesuptime>3</minutesuptime> </diagnostics> <password>sample string 3</password> <scanner>sample string 1</scanner> <user>sample string 2</user> </ScannerUpload>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
TransactionStatusName | Description | Type | Additional 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>