GET api/lockapi/lock/{id}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

LockViewModel
NameDescriptionTypeAdditional 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": "56e263f2-c91e-475b-bdff-e940a8b76078",
  "name": "sample string 2",
  "direction": "sample string 3",
  "distribution_id": "6d1ff5ba-efd0-426c-afb6-1677189c6715",
  "guard_id": "21585f25-f4a4-4565-84d7-089dae33011d",
  "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>6d1ff5ba-efd0-426c-afb6-1677189c6715</distribution_id>
  <guard_id>21585f25-f4a4-4565-84d7-089dae33011d</guard_id>
  <id>56e263f2-c91e-475b-bdff-e940a8b76078</id>
  <name>sample string 2</name>
</lock>