GET api/Works/{workorder}/Materials

Get all planned materials for work order

Request Information

URI Parameters

NameDescriptionTypeAdditional information
workorder

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of PlannedStockItem
NameDescriptionTypeAdditional information
Code

string

None.

Description

string

None.

Quantity

decimal number

None.

UnitCost

decimal number

None.

Response Formats

Sample:
[
  {
    "Code": "sample string 1",
    "Description": "sample string 2",
    "Quantity": 3.1,
    "UnitCost": 4.1
  },
  {
    "Code": "sample string 1",
    "Description": "sample string 2",
    "Quantity": 3.1,
    "UnitCost": 4.1
  }
]
Sample:
<ArrayOfPlannedStockItem xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
  <PlannedStockItem>
    <Code>sample string 1</Code>
    <Description>sample string 2</Description>
    <Quantity>3.1</Quantity>
    <UnitCost>4.1</UnitCost>
  </PlannedStockItem>
  <PlannedStockItem>
    <Code>sample string 1</Code>
    <Description>sample string 2</Description>
    <Quantity>3.1</Quantity>
    <UnitCost>4.1</UnitCost>
  </PlannedStockItem>
</ArrayOfPlannedStockItem>
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].Quantity"

3.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].UnitCost"

4.1
--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].Quantity"

3.1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].UnitCost"

4.1
--MultipartDataMediaFormatterBoundary1q2w3e--