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": "06cbd78a-02f2-419c-9061-5b16bd6609bf",
"date_hu": "2026-01-19T11:26:26.0955383+00:00",
"local_update": "2026-01-19T11:26:26.0955383+00:00",
"site_id": "35050a04-4a99-4790-ae15-c81418e20f98",
"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:26:26.0955383+00:00</date_hu> <id>06cbd78a-02f2-419c-9061-5b16bd6609bf</id> <local_update>2026-01-19T11:26:26.0955383+00:00</local_update> <site_id>35050a04-4a99-4790-ae15-c81418e20f98</site_id> <status>1</status> <wash_count>1</wash_count> </witness>