GET api/cabreaderapi/cabreader/{id}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
CabReaderViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| id | globally unique identifier |
None. |
|
| name | string |
Required String length: inclusive between 0 and 100 |
|
| cab_reader_type_id | globally unique identifier |
Required |
|
| port_com | integer |
None. |
|
| baudrate | integer |
None. |
|
| handshake | integer |
Required |
|
| read_time_out | integer |
None. |
|
| write_time_out | integer |
None. |
|
| pc_id | globally unique identifier |
None. |
|
| active | boolean |
Required |
|
| site_id | globally unique identifier |
Required |
|
| parity | integer |
Required |
|
| data_bits | integer |
Required |
|
| stop_bits | integer |
Required |
Response Formats
application/json, text/json
Sample:
{
"id": "ac8e66e4-f3f5-4852-beb4-b6236038a7b4",
"name": "sample string 2",
"cab_reader_type_id": "00a97596-a544-4a72-8d76-4a1b37bfae09",
"port_com": 1,
"baudrate": 1,
"handshake": 4,
"read_time_out": 1,
"write_time_out": 1,
"pc_id": "6f011a2b-e527-4aa2-8295-02a5c7777c5b",
"active": true,
"site_id": "82ebd239-8250-48f5-bf2f-86d880d4bb7b",
"parity": 7,
"data_bits": 8,
"stop_bits": 9
}
application/xml, text/xml
Sample:
<cab_reader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <baudrate>1</baudrate> <cab_reader_type_id>00a97596-a544-4a72-8d76-4a1b37bfae09</cab_reader_type_id> <data_bits>8</data_bits> <handshake>4</handshake> <id>ac8e66e4-f3f5-4852-beb4-b6236038a7b4</id> <name>sample string 2</name> <parity>7</parity> <pc_id>6f011a2b-e527-4aa2-8295-02a5c7777c5b</pc_id> <port_com>1</port_com> <read_time_out>1</read_time_out> <site_id>82ebd239-8250-48f5-bf2f-86d880d4bb7b</site_id> <stop_bits>9</stop_bits> <write_time_out>1</write_time_out> </cab_reader>