GET api/Works/{workorder}/Tasks
Get All Tasks
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
workorder |
Codigo OT |
string |
Required |
Body Parameters
None.
Response Information
Resource Description
Collection of TaskName | Description | Type | Additional information |
---|---|---|---|
Id |
|
integer |
None. |
Code |
|
string |
None. |
Description |
|
string |
None. |
Performed |
|
PerformedType |
None. |
Tasks |
|
string |
None. |
Notes |
|
string |
None. |
Documents |
|
Collection of Document |
None. |
VerificationType |
|
VerificationType |
None. |
Response Formats
Sample:
[ { "Id": 1, "Code": "sample string 2", "Description": "sample string 3", "Performed": 0, "Tasks": "sample string 4", "Notes": "sample string 5", "Documents": [ { "Description": "sample string 1", "Link": "sample string 2", "IsURL": true }, { "Description": "sample string 1", "Link": "sample string 2", "IsURL": true } ], "VerificationType": "Preparatory" }, { "Id": 1, "Code": "sample string 2", "Description": "sample string 3", "Performed": 0, "Tasks": "sample string 4", "Notes": "sample string 5", "Documents": [ { "Description": "sample string 1", "Link": "sample string 2", "IsURL": true }, { "Description": "sample string 1", "Link": "sample string 2", "IsURL": true } ], "VerificationType": "Preparatory" } ]
Sample:
<ArrayOfTask xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <Task> <Code>sample string 2</Code> <Description>sample string 3</Description> <Documents> <Document> <Description>sample string 1</Description> <IsURL>true</IsURL> <Link>sample string 2</Link> </Document> <Document> <Description>sample string 1</Description> <IsURL>true</IsURL> <Link>sample string 2</Link> </Document> </Documents> <Id>1</Id> <Notes>sample string 5</Notes> <Performed>NotOk</Performed> <Tasks>sample string 4</Tasks> <VerificationType>Preparatory</VerificationType> </Task> <Task> <Code>sample string 2</Code> <Description>sample string 3</Description> <Documents> <Document> <Description>sample string 1</Description> <IsURL>true</IsURL> <Link>sample string 2</Link> </Document> <Document> <Description>sample string 1</Description> <IsURL>true</IsURL> <Link>sample string 2</Link> </Document> </Documents> <Id>1</Id> <Notes>sample string 5</Notes> <Performed>NotOk</Performed> <Tasks>sample string 4</Tasks> <VerificationType>Preparatory</VerificationType> </Task> </ArrayOfTask>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Code" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Description" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Performed" NotOk --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Tasks" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Notes" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Documents[0].Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Documents[0].Link" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Documents[0].IsURL" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Documents[1].Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Documents[1].Link" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].Documents[1].IsURL" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[0].VerificationType" Preparatory --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Id" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Code" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Description" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Performed" NotOk --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Tasks" sample string 4 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Notes" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Documents[0].Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Documents[0].Link" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Documents[0].IsURL" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Documents[1].Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Documents[1].Link" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].Documents[1].IsURL" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="[1].VerificationType" Preparatory --MultipartDataMediaFormatterBoundary1q2w3e--