GET api/Requests/{code}
Get the details of a maintenance request
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
code |
|
integer |
Required |
Body Parameters
None.
Response Information
Resource Description
The maintenance request
RequestDetailsName | Description | Type | Additional information |
---|---|---|---|
Code |
|
integer |
None. |
Title |
|
string |
None. |
Description |
|
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. |
Destination |
|
Destination |
None. |
Cost |
|
Entity |
None. |
System |
|
BasicDetail |
None. |
Record |
|
decimal number |
None. |
Component |
|
Component |
None. |
Symptom |
|
BasicDetail |
None. |
Cause |
|
BasicDetail |
None. |
Documents |
|
Collection of Document |
None. |
CodeUser1 |
|
string |
None. |
CodeUser2 |
|
string |
None. |
Response Formats
Sample:
{ "Code": 1, "Title": "sample string 2", "Description": "sample string 3", "State": "Approved", "Date": "2024-11-14T16:27:38.39275+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" }, "Destination": { "Code": "sample string 1", "Description": "sample string 2", "IsSupplier": true }, "Cost": { "Code": "sample string 1", "Description": "sample string 2", "IsClient": true }, "System": { "Code": "sample string 1", "Description": "sample string 2" }, "Record": 1.1, "Component": { "Code": 1, "Description": "sample string 2" }, "Symptom": { "Code": "sample string 1", "Description": "sample string 2" }, "Cause": { "Code": "sample string 1", "Description": "sample string 2" }, "Documents": [ { "Description": "sample string 1", "Link": "sample string 2", "IsURL": true }, { "Description": "sample string 1", "Link": "sample string 2", "IsURL": true } ], "CodeUser1": "sample string 5", "CodeUser2": "sample string 6" }
Sample:
<RequestDetails xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Pedidos"> <Cause xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Description>sample string 2</d2p1:Description> </Cause> <Code>1</Code> <CodeUser1>sample string 5</CodeUser1> <CodeUser2>sample string 6</CodeUser2> <Component xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.Parque"> <d2p1:Code>1</d2p1:Code> <d2p1:Description>sample string 2</d2p1:Description> </Component> <Cost xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Description>sample string 2</d2p1:Description> <d2p1:IsClient>true</d2p1:IsClient> </Cost> <Date>2024-11-14T16:27:38.39275+00:00</Date> <Description>sample string 3</Description> <Destination xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Description>sample string 2</d2p1:Description> <d2p1:IsSupplier>true</d2p1:IsSupplier> </Destination> <Documents xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <d2p1:Document> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:IsURL>true</d2p1:IsURL> <d2p1:Link>sample string 2</d2p1:Link> </d2p1:Document> <d2p1:Document> <d2p1:Description>sample string 1</d2p1:Description> <d2p1:IsURL>true</d2p1:IsURL> <d2p1:Link>sample string 2</d2p1:Link> </d2p1:Document> </Documents> <Employee xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Description>sample string 2</d2p1:Description> </Employee> <Item xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Description>sample string 2</d2p1:Description> </Item> <Performer xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Description>sample string 2</d2p1:Description> </Performer> <Record>1.1</Record> <State>Approved</State> <StateEx>ApprovedGreen</StateEx> <Symptom xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Description>sample string 2</d2p1:Description> </Symptom> <System xmlns:d2p1="http://schemas.datacontract.org/2004/07/WebAPI.Models.ManWinWin"> <d2p1:Code>sample string 1</d2p1:Code> <d2p1:Description>sample string 2</d2p1:Description> </System> <Title>sample string 2</Title> <Urgency>Emergency</Urgency> </RequestDetails>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Code" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Title" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Description" sample string 3 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="State" Approved --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Date" 2024-11-14T16:27:38.3927500+00:00 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Urgency" Emergency --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="StateEx" ApprovedGreen --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Employee.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Employee.Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Performer.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Performer.Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Item.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Item.Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Destination.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Destination.Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Destination.IsSupplier" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Cost.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Cost.Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Cost.IsClient" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="System.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="System.Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Record" 1.1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Component.Code" 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Component.Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Symptom.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Symptom.Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Cause.Code" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Cause.Description" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Documents[0].Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Documents[0].Link" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Documents[0].IsURL" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Documents[1].Description" sample string 1 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Documents[1].Link" sample string 2 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="Documents[1].IsURL" True --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CodeUser1" sample string 5 --MultipartDataMediaFormatterBoundary1q2w3e Content-Disposition: form-data; name="CodeUser2" sample string 6 --MultipartDataMediaFormatterBoundary1q2w3e--