GET api/Requests/{code}/Works

List all Work Orders from a Maintenance Request

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

The Request code

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of WorkSimple
NameDescriptionTypeAdditional information
Code

string

None.

Description

string

None.

State

State

None.

StateEx

StateEx

None.

Date

date

None.

Scheduled

date

None.

ScheduledEnd

date

None.

Start

date

None.

End

date

None.

Closed

date

None.

Item

BasicDetail

None.

Location

BasicDetail

None.

Manager

BasicDetail

None.

Entity

Entity

None.

System

BasicDetail

None.

WorkType

BasicDetail

None.

Modified

date

None.

Urgency

Urgency

None.

UserCode01

string

None.

UserCode02

string

None.

Response Formats

Sample:
[
  {
    "Code": "sample string 1",
    "Description": "sample string 2",
    "State": "InProgress",
    "StateEx": "ScheduledGreen",
    "Date": "2024-11-14T16:42:10.5119605+00:00",
    "Scheduled": "2024-11-14T16:42:10.5119605+00:00",
    "ScheduledEnd": "2024-11-14T16:42:10.5119605+00:00",
    "Start": "2024-11-14T16:42:10.5119605+00:00",
    "End": "2024-11-14T16:42:10.5119605+00:00",
    "Closed": "2024-11-14T16:42:10.5119605+00:00",
    "Item": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Location": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Manager": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Entity": {
      "Code": "sample string 1",
      "Description": "sample string 2",
      "IsClient": true
    },
    "System": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "WorkType": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Modified": "2024-11-14T16:42:10.5119605+00:00",
    "Urgency": "Critical",
    "UserCode01": "sample string 6",
    "UserCode02": "sample string 7"
  },
  {
    "Code": "sample string 1",
    "Description": "sample string 2",
    "State": "InProgress",
    "StateEx": "ScheduledGreen",
    "Date": "2024-11-14T16:42:10.5119605+00:00",
    "Scheduled": "2024-11-14T16:42:10.5119605+00:00",
    "ScheduledEnd": "2024-11-14T16:42:10.5119605+00:00",
    "Start": "2024-11-14T16:42:10.5119605+00:00",
    "End": "2024-11-14T16:42:10.5119605+00:00",
    "Closed": "2024-11-14T16:42:10.5119605+00:00",
    "Item": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Location": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Manager": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Entity": {
      "Code": "sample string 1",
      "Description": "sample string 2",
      "IsClient": true
    },
    "System": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "WorkType": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Modified": "2024-11-14T16:42:10.5119605+00:00",
    "Urgency": "Critical",
    "UserCode01": "sample string 6",
    "UserCode02": "sample string 7"
  }
]
Sample:
<ArrayOfWorkSimple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Trabalhos">
  <WorkSimple>
    <Closed>2024-11-14T16:42:10.5119605+00:00</Closed>
    <Code>sample string 1</Code>
    <Date>2024-11-14T16:42:10.5119605+00:00</Date>
    <Description>sample string 2</Description>
    <End>2024-11-14T16:42:10.5119605+00:00</End>
    <Entity 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>
      <d3p1:IsClient>true</d3p1:IsClient>
    </Entity>
    <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>
    <Manager 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>
    </Manager>
    <Modified>2024-11-14T16:42:10.5119605+00:00</Modified>
    <Scheduled>2024-11-14T16:42:10.5119605+00:00</Scheduled>
    <ScheduledEnd>2024-11-14T16:42:10.5119605+00:00</ScheduledEnd>
    <Start>2024-11-14T16:42:10.5119605+00:00</Start>
    <State>InProgress</State>
    <StateEx>ScheduledGreen</StateEx>
    <System 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>
    </System>
    <Urgency>Critical</Urgency>
    <UserCode01>sample string 6</UserCode01>
    <UserCode02>sample string 7</UserCode02>
    <WorkType 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>
    </WorkType>
  </WorkSimple>
  <WorkSimple>
    <Closed>2024-11-14T16:42:10.5119605+00:00</Closed>
    <Code>sample string 1</Code>
    <Date>2024-11-14T16:42:10.5119605+00:00</Date>
    <Description>sample string 2</Description>
    <End>2024-11-14T16:42:10.5119605+00:00</End>
    <Entity 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>
      <d3p1:IsClient>true</d3p1:IsClient>
    </Entity>
    <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>
    <Manager 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>
    </Manager>
    <Modified>2024-11-14T16:42:10.5119605+00:00</Modified>
    <Scheduled>2024-11-14T16:42:10.5119605+00:00</Scheduled>
    <ScheduledEnd>2024-11-14T16:42:10.5119605+00:00</ScheduledEnd>
    <Start>2024-11-14T16:42:10.5119605+00:00</Start>
    <State>InProgress</State>
    <StateEx>ScheduledGreen</StateEx>
    <System 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>
    </System>
    <Urgency>Critical</Urgency>
    <UserCode01>sample string 6</UserCode01>
    <UserCode02>sample string 7</UserCode02>
    <WorkType 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>
    </WorkType>
  </WorkSimple>
</ArrayOfWorkSimple>
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].State"

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

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

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Scheduled"

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].ScheduledEnd"

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Start"

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].End"

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Closed"

2024-11-14T16:42:10.5119605+00:00
--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].Manager.Code"

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

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

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

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

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

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

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

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

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

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

Critical
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].UserCode01"

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

sample string 7
--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].State"

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

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

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Scheduled"

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].ScheduledEnd"

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Start"

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].End"

2024-11-14T16:42:10.5119605+00:00
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[1].Closed"

2024-11-14T16:42:10.5119605+00:00
--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].Manager.Code"

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

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

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

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

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

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

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

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

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

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

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

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

sample string 7
--MultipartDataMediaFormatterBoundary1q2w3e--