GET api/StoreRequests/{code}/Materials
List all Materials in a request
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
code |
The store request id |
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of StoreRequestMaterialName | Description | Type | Additional information |
---|---|---|---|
Code |
|
string |
None. |
Description |
|
string |
None. |
Urgency |
|
StoreRequest.Urgency |
None. |
QuantityRequested |
|
decimal number |
None. |
QuantityDelivered |
|
decimal number |
None. |
State |
|
StoreRequest.ItemState |
None. |
Response Formats
Sample:
[ { "Code": "sample string 1", "Description": "sample string 2", "Urgency": "Emergency", "QuantityRequested": 3.1, "QuantityDelivered": 4.1, "State": "Pending" }, { "Code": "sample string 1", "Description": "sample string 2", "Urgency": "Emergency", "QuantityRequested": 3.1, "QuantityDelivered": 4.1, "State": "Pending" } ]
Sample:
<ArrayOfStoreRequestMaterial xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Warehouse"> <StoreRequestMaterial> <Code>sample string 1</Code> <Description>sample string 2</Description> <QuantityDelivered>4.1</QuantityDelivered> <QuantityRequested>3.1</QuantityRequested> <State>Pending</State> <Urgency>Emergency</Urgency> </StoreRequestMaterial> <StoreRequestMaterial> <Code>sample string 1</Code> <Description>sample string 2</Description> <QuantityDelivered>4.1</QuantityDelivered> <QuantityRequested>3.1</QuantityRequested> <State>Pending</State> <Urgency>Emergency</Urgency> </StoreRequestMaterial> </ArrayOfStoreRequestMaterial>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Urgency" Emergency --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].QuantityRequested" 3.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].QuantityDelivered" 4.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].State" Pending --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Urgency" Emergency --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].QuantityRequested" 3.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].QuantityDelivered" 4.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].State" Pending --MultipartDataMediaFormatterBoundary1q2w3e--