GET api/lockapi/locksbycustomer/{customerId}?active={active}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| customerId | globally unique identifier |
Required |
|
| active | boolean |
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": "b2c7fe54-09e7-4b95-a059-8aeb6e68b195",
"name": "sample string 2",
"direction": "sample string 3",
"distribution_id": "fb08ee4d-28e0-41b7-a2f8-b6e2dbde5200",
"guard_id": "6114da0f-27cc-46ac-91b4-69415b2d22b9",
"active": true
},
{
"id": "b2c7fe54-09e7-4b95-a059-8aeb6e68b195",
"name": "sample string 2",
"direction": "sample string 3",
"distribution_id": "fb08ee4d-28e0-41b7-a2f8-b6e2dbde5200",
"guard_id": "6114da0f-27cc-46ac-91b4-69415b2d22b9",
"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>fb08ee4d-28e0-41b7-a2f8-b6e2dbde5200</distribution_id>
<guard_id>6114da0f-27cc-46ac-91b4-69415b2d22b9</guard_id>
<id>b2c7fe54-09e7-4b95-a059-8aeb6e68b195</id>
<name>sample string 2</name>
</lock>
<lock>
<active>true</active>
<direction>sample string 3</direction>
<distribution_id>fb08ee4d-28e0-41b7-a2f8-b6e2dbde5200</distribution_id>
<guard_id>6114da0f-27cc-46ac-91b4-69415b2d22b9</guard_id>
<id>b2c7fe54-09e7-4b95-a059-8aeb6e68b195</id>
<name>sample string 2</name>
</lock>
</ArrayOflock>