GET api/v1/Readers?FacilityId={FacilityId}

Returns a list of ReaderViewModels for a given Facility that the API token has rights to view

Request Information

URI Parameters

NameDescriptionTypeAdditional information
FacilityId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

Collection of ReaderViewModel
NameDescriptionTypeAdditional information
ReaderId

Represents the PK of the Reader

integer

None.

Name

Represents the name of the Reader

string

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "ReaderId": 1,
    "Name": "sample string 2"
  },
  {
    "ReaderId": 1,
    "Name": "sample string 2"
  }
]

application/xml, text/xml

Sample:
<ArrayOfReaderViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/APIWebRole.Controllers">
  <ReaderViewModel>
    <Name>sample string 2</Name>
    <ReaderId>1</ReaderId>
  </ReaderViewModel>
  <ReaderViewModel>
    <Name>sample string 2</Name>
    <ReaderId>1</ReaderId>
  </ReaderViewModel>
</ArrayOfReaderViewModel>