GET api/InspectionTemplate/Complex

Request Information

URI Parameters

None.

Body Parameters

None.

Response Information

Resource Description

Collection of CustomInspectionTemplateDTO
NameDescriptionTypeAdditional information
InspectionTemplate

InspectionTemplateDTO

None.

InspectionTemplateItems

Collection of InspectionTemplateItemsDTO

None.

Response Formats

application/json, text/json

Sample:
[
  {
    "InspectionTemplate": {
      "ID": 1,
      "Name": "sample string 2"
    },
    "InspectionTemplateItems": [
      {
        "ID": 1,
        "InspectionTemplateID": 2,
        "Name": "sample string 3",
        "Comments": "sample string 4"
      },
      {
        "ID": 1,
        "InspectionTemplateID": 2,
        "Name": "sample string 3",
        "Comments": "sample string 4"
      }
    ]
  },
  {
    "InspectionTemplate": {
      "ID": 1,
      "Name": "sample string 2"
    },
    "InspectionTemplateItems": [
      {
        "ID": 1,
        "InspectionTemplateID": 2,
        "Name": "sample string 3",
        "Comments": "sample string 4"
      },
      {
        "ID": 1,
        "InspectionTemplateID": 2,
        "Name": "sample string 3",
        "Comments": "sample string 4"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomInspectionTemplateDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.DTO">
  <CustomInspectionTemplateDTO>
    <InspectionTemplate>
      <ID>1</ID>
      <Name>sample string 2</Name>
    </InspectionTemplate>
    <InspectionTemplateItems>
      <InspectionTemplateItemsDTO>
        <Comments>sample string 4</Comments>
        <ID>1</ID>
        <InspectionTemplateID>2</InspectionTemplateID>
        <Name>sample string 3</Name>
      </InspectionTemplateItemsDTO>
      <InspectionTemplateItemsDTO>
        <Comments>sample string 4</Comments>
        <ID>1</ID>
        <InspectionTemplateID>2</InspectionTemplateID>
        <Name>sample string 3</Name>
      </InspectionTemplateItemsDTO>
    </InspectionTemplateItems>
  </CustomInspectionTemplateDTO>
  <CustomInspectionTemplateDTO>
    <InspectionTemplate>
      <ID>1</ID>
      <Name>sample string 2</Name>
    </InspectionTemplate>
    <InspectionTemplateItems>
      <InspectionTemplateItemsDTO>
        <Comments>sample string 4</Comments>
        <ID>1</ID>
        <InspectionTemplateID>2</InspectionTemplateID>
        <Name>sample string 3</Name>
      </InspectionTemplateItemsDTO>
      <InspectionTemplateItemsDTO>
        <Comments>sample string 4</Comments>
        <ID>1</ID>
        <InspectionTemplateID>2</InspectionTemplateID>
        <Name>sample string 3</Name>
      </InspectionTemplateItemsDTO>
    </InspectionTemplateItems>
  </CustomInspectionTemplateDTO>
</ArrayOfCustomInspectionTemplateDTO>