GET api/Works/{workorder}/Requests

List all Maintenance Requests from a Work Order

Request Information

URI Parameters

NameDescriptionTypeAdditional information
workorder

The Work Order code

string

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Request
NameDescriptionTypeAdditional information
Code

integer

None.

Title

string

None.

State

Request.State

None.

Date

date

None.

Urgency

Request.Urgency

None.

StateEx

Request.StateEx

None.

Employee

BasicDetail

None.

Performer

BasicDetail

None.

Item

BasicDetail

None.

Location

BasicDetail

None.

Destination

string

None.

Cost

string

None.

System

string

None.

Function

BasicDetail

None.

DownState

boolean

None.

CodeUser1

string

None.

CodeUser2

string

None.

Response Formats

Sample:
[
  {
    "Code": 1,
    "Title": "sample string 2",
    "State": "Approved",
    "Date": "2024-11-14T16:41:00.4174901+00:00",
    "Urgency": "Emergency",
    "StateEx": "ApprovedGreen",
    "Employee": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Performer": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Item": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Location": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Destination": "sample string 4",
    "Cost": "sample string 5",
    "System": "sample string 6",
    "Function": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "DownState": true,
    "CodeUser1": "sample string 8",
    "CodeUser2": "sample string 9"
  },
  {
    "Code": 1,
    "Title": "sample string 2",
    "State": "Approved",
    "Date": "2024-11-14T16:41:00.4174901+00:00",
    "Urgency": "Emergency",
    "StateEx": "ApprovedGreen",
    "Employee": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Performer": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Item": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Location": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Destination": "sample string 4",
    "Cost": "sample string 5",
    "System": "sample string 6",
    "Function": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "DownState": true,
    "CodeUser1": "sample string 8",
    "CodeUser2": "sample string 9"
  }
]
Sample:
<ArrayOfRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Pedidos">
  <Request>
    <Code>1</Code>
    <CodeUser1>sample string 8</CodeUser1>
    <CodeUser2>sample string 9</CodeUser2>
    <Cost>sample string 5</Cost>
    <Date>2024-11-14T16:41:00.4174901+00:00</Date>
    <Destination>sample string 4</Destination>
    <DownState>true</DownState>
    <Employee xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Employee>
    <Function xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Function>
    <Item xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Item>
    <Location xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Location>
    <Performer xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Performer>
    <State>Approved</State>
    <StateEx>ApprovedGreen</StateEx>
    <System>sample string 6</System>
    <Title>sample string 2</Title>
    <Urgency>Emergency</Urgency>
  </Request>
  <Request>
    <Code>1</Code>
    <CodeUser1>sample string 8</CodeUser1>
    <CodeUser2>sample string 9</CodeUser2>
    <Cost>sample string 5</Cost>
    <Date>2024-11-14T16:41:00.4174901+00:00</Date>
    <Destination>sample string 4</Destination>
    <DownState>true</DownState>
    <Employee xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Employee>
    <Function xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Function>
    <Item xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Item>
    <Location xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Location>
    <Performer xmlns:d3p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin">
      <d3p1:Code>sample string 1</d3p1:Code>
      <d3p1:Description>sample string 2</d3p1:Description>
    </Performer>
    <State>Approved</State>
    <StateEx>ApprovedGreen</StateEx>
    <System>sample string 6</System>
    <Title>sample string 2</Title>
    <Urgency>Emergency</Urgency>
  </Request>
</ArrayOfRequest>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Code"

1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Title"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].State"

Approved
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Date"

2024-11-14T16:41:00.4174901+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Urgency"

Emergency
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].StateEx"

ApprovedGreen
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Employee.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Employee.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Performer.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Performer.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Item.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Item.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Location.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Location.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Destination"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Cost"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].System"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Function.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Function.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].DownState"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].CodeUser1"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].CodeUser2"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Code"

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

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].State"

Approved
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Date"

2024-11-14T16:41:00.4174901+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Urgency"

Emergency
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].StateEx"

ApprovedGreen
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Employee.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Employee.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Performer.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Performer.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Item.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Item.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Location.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Location.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Destination"

sample string 4
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Cost"

sample string 5
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].System"

sample string 6
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Function.Code"

sample string 1
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Function.Description"

sample string 2
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].DownState"

True
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].CodeUser1"

sample string 8
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].CodeUser2"

sample string 9
--MultipartDataMediaFormatterBoundary1q2w3e--