GET api/lockapi/lock/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
LockViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
None. |
|
| name | string |
String length: inclusive between 0 and 100 |
|
| direction | string |
Required String length: inclusive between 0 and 2 |
|
| distribution_id | globally unique identifier |
None. |
|
| guard_id | globally unique identifier |
None. |
|
| active | boolean |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": "6fb348cc-2e59-45fc-a5d5-007b69045ab4",
"name": "sample string 2",
"direction": "sample string 3",
"distribution_id": "0be91303-0254-4c53-a314-778406378030",
"guard_id": "fc4e178a-6e21-4afe-83e0-9204bf7eb171",
"active": true
}
application/xml, text/xml
Sample:
<lock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <direction>sample string 3</direction> <distribution_id>0be91303-0254-4c53-a314-778406378030</distribution_id> <guard_id>fc4e178a-6e21-4afe-83e0-9204bf7eb171</guard_id> <id>6fb348cc-2e59-45fc-a5d5-007b69045ab4</id> <name>sample string 2</name> </lock>