Request Parameters
Parameter
|
Description
|
Obligatory
|
id
|
Station identifier.
The parameter can be defined in the request as many times as you like to delete multiple stations at a time.
|
yes
|
Request Example
http://192.168.1.1:9080/api/stations/delete.ds?id=1000&id=1001
|
XML and JSON response structure examples are described below.
XML Response
<drweb-es-api api_version="4.3.0" timestamp="1498032806" server="192.168.1.1" srv_version="12.00.0.201909260" status="true">
<stations total="2">
<station id="1000"/>
<station id="1001"/>
</stations>
</drweb-es-api>
|
Description of XML Response Parameters
The <stations /> element contains information about all deleted stations.
The <stations /> element attribute:
Attribute
|
Description
|
total
|
Total number of stations
|
•The <station /> element contains information about a specific deleted station. The <station /> element attribute:
Attribute
|
Description
|
id
|
Station identifier
|
JSON Response
{ "head": {
"status": true,
"timestamp": 1555743219,
"api": {
"version": 40300,
"versionString": 4.3.0},
"server": {
"name": "192.168.1.1",
"version": "12.00.0.201909260",
"uuid": "50171907-d21d-b211-b3fd-cc152f024d8c"}},
"data": {
"stations": {
"total": 2,
"list": [
{"id": "1000"},
{"id": "1001"}]}}}
|
Description of JSON Response Parameters
The data block contains information on all removed stations.
The data block element:
Field name
|
Description
|
total
|
Total number of stations
|
•The list array contains information on each specific removed station. Elements in the list array:
Field name
|
Description
|
id
|
Station identifier
|
|