POST api/DataCounter

Request Information

URI Parameters

None.

Body Parameters

PostDataCouter
NameDescriptionTypeAdditional 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": "2024-05-19T21:29:17.5831846+07:00"
}

application/xml, text/xml

Sample:
<PostDataCouter xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPIForCounter.ViewModel">
  <DateSend>2024-05-19T21:29:17.5831846+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:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PostDataCouter'.

Response Information

Resource Description

string

Response Formats

application/json, text/json

Sample:
"sample string 1"

application/xml, text/xml

Sample:
<string xmlns="http://schemas.microsoft.com/2003/10/Serialization/">sample string 1</string>