POST api/transport/master/stop/Lock
Lock Stop
Request Information
URI Parameters
None.
Body Parameters
Systemic.Model.Transport.mlStop+Stop| Name | description | Type | Additional information |
|---|---|---|---|
| StopSysID | integer |
None. |
|
| StopName | string |
None. |
|
| Lat | string |
None. |
|
| Long | string |
None. |
|
| Locked | Systemic.Model.mlLocked |
None. |
Request Formats
application/json, text/json, text/html
Sample:
{
"StopSysID": 1,
"StopName": "sample string 2",
"Lat": "sample string 3",
"Long": "sample string 4",
"Locked": {
"LockedBy": "sample string 1",
"LockedDate": "sample string 2",
"LockedReason": "sample string 3",
"IsLocked": true
}
}
text/xml
Sample:
<mlStop.Stop xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Systemic.Model.Transport">
<Lat>sample string 3</Lat>
<Locked xmlns:d2p1="http://schemas.datacontract.org/2004/07/Systemic.Model">
<d2p1:IsLocked>true</d2p1:IsLocked>
<d2p1:LockedBy>sample string 1</d2p1:LockedBy>
<d2p1:LockedDate>sample string 2</d2p1:LockedDate>
<d2p1:LockedReason>sample string 3</d2p1:LockedReason>
</Locked>
<Long>sample string 4</Long>
<StopName>sample string 2</StopName>
<StopSysID>1</StopSysID>
</mlStop.Stop>
response Information
Resource description
ServerResponse.
Api.Server.ServerResponse| Name | description | Type | Additional information |
|---|---|---|---|
| response | string |
None. |
|
| success | Api.Server.MlSuccess |
None. |
|
| failure | Api.Server.MlError |
None. |
response Formats
application/json, text/json, text/html
Sample:
{
"response": "sample string 1",
"success": null,
"failure": null
}
text/xml
Sample:
<ServerResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Api.Server"> <failure i:nil="true" /> <response>sample string 1</response> <success i:nil="true" /> </ServerResponse>