POST api/batchapi/witnessfordrying
Request Information
URI Parameters
None.
Body Parameters
MedistreamStateViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| medistream_id | globally unique identifier |
None. |
|
| batch_id | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"medistream_id": "5dd9ebfc-08b4-460c-9cd7-5f7c3af79685",
"batch_id": "d1ca8b92-2b44-42ae-a2b5-48ca8f3bff4a"
}
application/xml, text/xml
Sample:
<medistream_state xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel"> <batch_id>d1ca8b92-2b44-42ae-a2b5-48ca8f3bff4a</batch_id> <medistream_id>5dd9ebfc-08b4-460c-9cd7-5f7c3af79685</medistream_id> </medistream_state>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
WitnessForDryingViewModel| Name | Description | Type | Additional information |
|---|---|---|---|
| medistream_state | integer |
None. |
|
| current_batch | string |
None. |
|
| witnesses | Collection of WitnessForDryingItem |
None. |
Response Formats
application/json, text/json
Sample:
{
"medistream_state": 1,
"current_batch": "sample string 2",
"witnesses": [
{
"witnessId": "6cffc98d-49ba-4a79-924d-aba98570bc2f",
"witnessCode": 2.1,
"compartment": 3,
"state": 4
},
{
"witnessId": "6cffc98d-49ba-4a79-924d-aba98570bc2f",
"witnessCode": 2.1,
"compartment": 3,
"state": 4
}
]
}
application/xml, text/xml
Sample:
<witness_for_drying xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EntityModel">
<current_batch>sample string 2</current_batch>
<medistream_state>1</medistream_state>
<witnesses>
<WitnessForDryingItem>
<Compartment>3</Compartment>
<State>4</State>
<WitnessCode>2.1</WitnessCode>
<WitnessId>6cffc98d-49ba-4a79-924d-aba98570bc2f</WitnessId>
</WitnessForDryingItem>
<WitnessForDryingItem>
<Compartment>3</Compartment>
<State>4</State>
<WitnessCode>2.1</WitnessCode>
<WitnessId>6cffc98d-49ba-4a79-924d-aba98570bc2f</WitnessId>
</WitnessForDryingItem>
</witnesses>
</witness_for_drying>