GET api/cabreaderapi/cabreadersbypc/{pcId}?active={active}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| pcId | globally unique identifier |
Required |
|
| active | boolean |
None. |
Body Parameters
None.
Response Information
Resource Description
Collection of 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": "950d630d-24b0-4e50-a565-ba73a817e0ac",
"name": "sample string 2",
"cab_reader_type_id": "37f2c7d7-874a-4863-9a45-9e8f120d5fd5",
"port_com": 1,
"baudrate": 1,
"handshake": 4,
"read_time_out": 1,
"write_time_out": 1,
"pc_id": "db230939-4c75-4ee0-8d6c-da33e8bdcdec",
"active": true,
"site_id": "6e209a08-749e-4b0c-9ad0-d94f7628e6d8",
"parity": 7,
"data_bits": 8,
"stop_bits": 9
},
{
"id": "950d630d-24b0-4e50-a565-ba73a817e0ac",
"name": "sample string 2",
"cab_reader_type_id": "37f2c7d7-874a-4863-9a45-9e8f120d5fd5",
"port_com": 1,
"baudrate": 1,
"handshake": 4,
"read_time_out": 1,
"write_time_out": 1,
"pc_id": "db230939-4c75-4ee0-8d6c-da33e8bdcdec",
"active": true,
"site_id": "6e209a08-749e-4b0c-9ad0-d94f7628e6d8",
"parity": 7,
"data_bits": 8,
"stop_bits": 9
}
]
application/xml, text/xml
Sample:
<ArrayOfcab_reader xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<cab_reader>
<active>true</active>
<baudrate>1</baudrate>
<cab_reader_type_id>37f2c7d7-874a-4863-9a45-9e8f120d5fd5</cab_reader_type_id>
<data_bits>8</data_bits>
<handshake>4</handshake>
<id>950d630d-24b0-4e50-a565-ba73a817e0ac</id>
<name>sample string 2</name>
<parity>7</parity>
<pc_id>db230939-4c75-4ee0-8d6c-da33e8bdcdec</pc_id>
<port_com>1</port_com>
<read_time_out>1</read_time_out>
<site_id>6e209a08-749e-4b0c-9ad0-d94f7628e6d8</site_id>
<stop_bits>9</stop_bits>
<write_time_out>1</write_time_out>
</cab_reader>
<cab_reader>
<active>true</active>
<baudrate>1</baudrate>
<cab_reader_type_id>37f2c7d7-874a-4863-9a45-9e8f120d5fd5</cab_reader_type_id>
<data_bits>8</data_bits>
<handshake>4</handshake>
<id>950d630d-24b0-4e50-a565-ba73a817e0ac</id>
<name>sample string 2</name>
<parity>7</parity>
<pc_id>db230939-4c75-4ee0-8d6c-da33e8bdcdec</pc_id>
<port_com>1</port_com>
<read_time_out>1</read_time_out>
<site_id>6e209a08-749e-4b0c-9ad0-d94f7628e6d8</site_id>
<stop_bits>9</stop_bits>
<write_time_out>1</write_time_out>
</cab_reader>
</ArrayOfcab_reader>