GET api/witnessapi/witness/{witnessId}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| witnessId | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
WitnessViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| active | boolean |
Required |
|
| code | integer |
Required |
|
| id | globally unique identifier |
None. |
|
| date_hu | date |
None. |
|
| local_update | date |
None. |
|
| site_id | globally unique identifier |
Required |
|
| status | integer |
None. |
|
| wash_count | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"active": true,
"code": 2,
"id": "58a1537e-28ba-4ecd-b654-cc566abbb79c",
"date_hu": "2026-01-19T11:40:23.9702381+00:00",
"local_update": "2026-01-19T11:40:23.9702381+00:00",
"site_id": "8827cdf1-56ea-4355-8f4c-468b383e11e0",
"status": 1,
"wash_count": 1
}
application/xml, text/xml
Sample:
<witness xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <active>true</active> <code>2</code> <date_hu>2026-01-19T11:40:23.9702381+00:00</date_hu> <id>58a1537e-28ba-4ecd-b654-cc566abbb79c</id> <local_update>2026-01-19T11:40:23.9702381+00:00</local_update> <site_id>8827cdf1-56ea-4355-8f4c-468b383e11e0</site_id> <status>1</status> <wash_count>1</wash_count> </witness>