GET api/Works/{workorder}/DownTimes
Get the WO down times
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
workorder |
Codigo OT |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of DownTimeName | Description | Type | Additional information |
---|---|---|---|
Id |
|
integer |
None. |
Entity |
|
DownTimeEntityDetails |
None. |
From |
|
date |
None. |
To |
|
date |
None. |
DownState |
|
boolean |
None. |
Response Formats
Sample:
[ { "Id": 1, "Entity": { "Description": "sample string 1", "Code": "sample string 2", "Type": "Item" }, "From": "2024-11-14T16:38:33.2285097+00:00", "To": "2024-11-14T16:38:33.2285097+00:00", "DownState": true }, { "Id": 1, "Entity": { "Description": "sample string 1", "Code": "sample string 2", "Type": "Item" }, "From": "2024-11-14T16:38:33.2285097+00:00", "To": "2024-11-14T16:38:33.2285097+00:00", "DownState": true } ]
Sample:
<ArrayOfDownTime xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Trabalhos"> <DownTime> <DownState>true</DownState> <Entity> <Code>sample string 2</Code> <Type>Item</Type> <Description>sample string 1</Description> </Entity> <From>2024-11-14T16:38:33.2285097+00:00</From> <Id>1</Id> <To>2024-11-14T16:38:33.2285097+00:00</To> </DownTime> <DownTime> <DownState>true</DownState> <Entity> <Code>sample string 2</Code> <Type>Item</Type> <Description>sample string 1</Description> </Entity> <From>2024-11-14T16:38:33.2285097+00:00</From> <Id>1</Id> <To>2024-11-14T16:38:33.2285097+00:00</To> </DownTime> </ArrayOfDownTime>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Entity.Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Entity.Code" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Entity.Type" Item --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].From" 2024-11-14T16:38:33.2285097+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].To" 2024-11-14T16:38:33.2285097+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].DownState" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Entity.Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Entity.Code" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Entity.Type" Item --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].From" 2024-11-14T16:38:33.2285097+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].To" 2024-11-14T16:38:33.2285097+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].DownState" True --MultipartDataMediaFormatterBoundary1q2w3e--