POST api/DataCouter/ReportData
Request Information
URI Parameters
None.
Body Parameters
PostDataCouter| Name | Description | Type | Additional information |
|---|---|---|---|
| UserName | string |
None. |
|
| SlaveID | integer |
None. |
|
| OddNumber | integer |
None. |
|
| WeightTotal | decimal number |
None. |
|
| NumberTimes | integer |
None. |
|
| Weight | decimal number |
None. |
|
| DateSend | date |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserName": "sample string 1",
"SlaveID": 2,
"OddNumber": 3,
"WeightTotal": 4.1,
"NumberTimes": 5,
"Weight": 6.1,
"DateSend": "2026-02-04T14:00:57.5301034+07:00"
}
application/xml, text/xml
Sample:
<PostDataCouter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPIConnectDevices.ViewModel"> <DateSend>2026-02-04T14:00:57.5301034+07:00</DateSend> <NumberTimes>5</NumberTimes> <OddNumber>3</OddNumber> <SlaveID>2</SlaveID> <UserName>sample string 1</UserName> <Weight>6.1</Weight> <WeightTotal>4.1</WeightTotal> </PostDataCouter>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.