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": "b9190ad2-c0d6-4f49-bd3e-da4fd1d9d39f",
"name": "sample string 2",
"direction": "sample string 3",
"distribution_id": "1162ae51-46f2-44a0-bcff-09d81e906113",
"guard_id": "0a230022-6855-4b6e-92d7-8641f91ffd4d",
"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>1162ae51-46f2-44a0-bcff-09d81e906113</distribution_id> <guard_id>0a230022-6855-4b6e-92d7-8641f91ffd4d</guard_id> <id>b9190ad2-c0d6-4f49-bd3e-da4fd1d9d39f</id> <name>sample string 2</name> </lock>