POST API/pump

Request Information

URI Parameters

None.

Body Parameters

Collection of PumpLine
NameDescriptionTypeAdditional information
timestamp_pump

string

None.

run_pump

string

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "timestamp_pump": "sample string 1",
    "run_pump": "sample string 2"
  },
  {
    "timestamp_pump": "sample string 1",
    "run_pump": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfPumpLine xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RGWeb.Models">
  <PumpLine>
    <run_pump>sample string 2</run_pump>
    <timestamp_pump>sample string 1</timestamp_pump>
  </PumpLine>
  <PumpLine>
    <run_pump>sample string 2</run_pump>
    <timestamp_pump>sample string 1</timestamp_pump>
  </PumpLine>
</ArrayOfPumpLine>

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 'List`1'.

Response Information

Resource Description

None.