GET api/lockapi/locksbysite/{siteId}?active={active}&lastUpdate={lastUpdate}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| siteId | globally unique identifier |
Required |
|
| active | boolean |
None. |
|
| lastUpdate | date |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of 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": "90711fe5-e8db-4828-accd-93e2f4e1448e",
"name": "sample string 2",
"direction": "sample string 3",
"distribution_id": "fdb24ac5-9d65-4eb1-9c6c-1eae9c111b03",
"guard_id": "7a3cc938-db6b-4dde-9cee-078244c55370",
"active": true
},
{
"id": "90711fe5-e8db-4828-accd-93e2f4e1448e",
"name": "sample string 2",
"direction": "sample string 3",
"distribution_id": "fdb24ac5-9d65-4eb1-9c6c-1eae9c111b03",
"guard_id": "7a3cc938-db6b-4dde-9cee-078244c55370",
"active": true
}
]
application/xml, text/xml
Sample:
<ArrayOflock xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<lock>
<active>true</active>
<direction>sample string 3</direction>
<distribution_id>fdb24ac5-9d65-4eb1-9c6c-1eae9c111b03</distribution_id>
<guard_id>7a3cc938-db6b-4dde-9cee-078244c55370</guard_id>
<id>90711fe5-e8db-4828-accd-93e2f4e1448e</id>
<name>sample string 2</name>
</lock>
<lock>
<active>true</active>
<direction>sample string 3</direction>
<distribution_id>fdb24ac5-9d65-4eb1-9c6c-1eae9c111b03</distribution_id>
<guard_id>7a3cc938-db6b-4dde-9cee-078244c55370</guard_id>
<id>90711fe5-e8db-4828-accd-93e2f4e1448e</id>
<name>sample string 2</name>
</lock>
</ArrayOflock>