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": "5c9b7949-4130-4da2-8a1d-17a08900cde5",
"name": "sample string 2",
"direction": "sample string 3",
"distribution_id": "10410684-2730-4e75-bdb6-aacb7349e4ab",
"guard_id": "71671d37-f41e-4361-91c5-7a4c0a724a3f",
"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>10410684-2730-4e75-bdb6-aacb7349e4ab</distribution_id> <guard_id>71671d37-f41e-4361-91c5-7a4c0a724a3f</guard_id> <id>5c9b7949-4130-4da2-8a1d-17a08900cde5</id> <name>sample string 2</name> </lock>