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": "0fc15a05-9f39-4c09-a675-b8a6d240fa4e",
  "name": "sample string 2",
  "direction": "sample string 3",
  "distribution_id": "a1a8bcfd-1148-4657-9685-0a267ac16675",
  "guard_id": "a0034a6d-6e31-425c-a6b7-3e5e5f2e1f38",
  "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>a1a8bcfd-1148-4657-9685-0a267ac16675</distribution_id>
  <guard_id>a0034a6d-6e31-425c-a6b7-3e5e5f2e1f38</guard_id>
  <id>0fc15a05-9f39-4c09-a675-b8a6d240fa4e</id>
  <name>sample string 2</name>
</lock>