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": "d2169230-63be-41fe-b753-3c542e2261e3",
  "name": "sample string 2",
  "direction": "sample string 3",
  "distribution_id": "3a8715c4-1e87-4f57-8857-5e8806fb2272",
  "guard_id": "b1204311-0f7c-4792-b7d2-b17c8c8b20d8",
  "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>3a8715c4-1e87-4f57-8857-5e8806fb2272</distribution_id>
  <guard_id>b1204311-0f7c-4792-b7d2-b17c8c8b20d8</guard_id>
  <id>d2169230-63be-41fe-b753-3c542e2261e3</id>
  <name>sample string 2</name>
</lock>