GET api/badgereaderapi/badgeReader/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
BadgeReaderViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
None. |
|
| name | string |
String length: inclusive between 0 and 100 |
|
| pc_id | globally unique identifier |
None. |
|
| com_port | integer |
None. |
|
| baudrate | integer |
None. |
|
| direction | string |
Required String length: inclusive between 0 and 3 |
|
| has_correspondence | boolean |
Required |
|
| active | boolean |
Required |
|
| badge_reader_type_id | globally unique identifier |
None. |
|
| site_id | globally unique identifier |
None. |
|
| parity | integer |
Required |
|
| data_bits | integer |
Required |
|
| stop_bits | integer |
Required |
|
| handshake | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"id": "16aa3730-2afd-473f-88ad-8ba74f3193d5",
"name": "sample string 2",
"pc_id": "176155bc-6aa1-485b-8e22-abfedcf0291f",
"com_port": 1,
"baudrate": 1,
"direction": "sample string 3",
"has_correspondence": true,
"active": true,
"badge_reader_type_id": "4c68534a-c202-4c59-ba99-8ec7195cde9f",
"site_id": "516c55eb-330f-4e3f-b40b-2fb1c8e04225",
"parity": 6,
"data_bits": 7,
"stop_bits": 8,
"handshake": 9
}
application/xml, text/xml
Sample:
<badgereader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <badge_reader_type_id>4c68534a-c202-4c59-ba99-8ec7195cde9f</badge_reader_type_id> <baudrate>1</baudrate> <com_port>1</com_port> <data_bits>7</data_bits> <direction>sample string 3</direction> <handshake>9</handshake> <has_correspondence>true</has_correspondence> <id>16aa3730-2afd-473f-88ad-8ba74f3193d5</id> <name>sample string 2</name> <parity>6</parity> <pc_id>176155bc-6aa1-485b-8e22-abfedcf0291f</pc_id> <site_id>516c55eb-330f-4e3f-b40b-2fb1c8e04225</site_id> <stop_bits>8</stop_bits> </badgereader>