GET api/Requests/{code}/Messages

Get the Messages of a maintenance request

Request Information

URI Parameters

NameDescriptionTypeAdditional information
code

The Request code

integer

Required

Body Parameters

None.

Response Information

Resource Description

Collection of Message
NameDescriptionTypeAdditional information
Id

integer

None.

Date

date

None.

Employee

BasicDetail

None.

Text

string

None.

IsNew

boolean

None.

Response Formats

Sample:
[
  {
    "Id": 1,
    "Date": "2024-11-14T16:32:26.9584654+00:00",
    "Employee": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Text": "sample string 3",
    "IsNew": true
  },
  {
    "Id": 1,
    "Date": "2024-11-14T16:32:26.9584654+00:00",
    "Employee": {
      "Code": "sample string 1",
      "Description": "sample string 2"
    },
    "Text": "sample string 3",
    "IsNew": true
  }
]
Sample:
<ArrayOfMessage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/WebAPI.Models.Pedidos">
  <Message>
    <Date>2024-11-14T16:32:26.9584654+00:00</Date>
    <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>
    <Id>1</Id>
    <IsNew>true</IsNew>
    <Text>sample string 3</Text>
  </Message>
  <Message>
    <Date>2024-11-14T16:32:26.9584654+00:00</Date>
    <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>
    <Id>1</Id>
    <IsNew>true</IsNew>
    <Text>sample string 3</Text>
  </Message>
</ArrayOfMessage>
Sample:
--MultipartDataMediaFormatterBoundary1q2w3e
Content-Disposition: form-data; name="[0].Id"

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

2024-11-14T16:32:26.9584654+00:00
--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].Text"

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

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

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

2024-11-14T16:32:26.9584654+00:00
--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].Text"

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

True
--MultipartDataMediaFormatterBoundary1q2w3e--