POST api/CustomerInspections/PostAll

Request Information

URI Parameters

None.

Body Parameters

Collection of CustomerComplexDTO
NameDescriptionTypeAdditional information
CustomerInspection

CustomerInspectionDTO

None.

CustomerInspectionItems

Collection of CustomerInspectionItemsDTO

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "CustomerInspection": {
      "ID": 1,
      "CustomerID": 2,
      "CustomerVenueID": 3,
      "Name": "sample string 4"
    },
    "CustomerInspectionItems": [
      {
        "ID": 1,
        "CustomerInspectionID": 2,
        "Name": "sample string 3"
      },
      {
        "ID": 1,
        "CustomerInspectionID": 2,
        "Name": "sample string 3"
      }
    ]
  },
  {
    "CustomerInspection": {
      "ID": 1,
      "CustomerID": 2,
      "CustomerVenueID": 3,
      "Name": "sample string 4"
    },
    "CustomerInspectionItems": [
      {
        "ID": 1,
        "CustomerInspectionID": 2,
        "Name": "sample string 3"
      },
      {
        "ID": 1,
        "CustomerInspectionID": 2,
        "Name": "sample string 3"
      }
    ]
  }
]

application/xml, text/xml

Sample:
<ArrayOfCustomerComplexDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/DataAccess.DTO">
  <CustomerComplexDTO>
    <CustomerInspection>
      <CustomerID>2</CustomerID>
      <CustomerVenueID>3</CustomerVenueID>
      <ID>1</ID>
      <Name>sample string 4</Name>
    </CustomerInspection>
    <CustomerInspectionItems>
      <CustomerInspectionItemsDTO>
        <CustomerInspectionID>2</CustomerInspectionID>
        <ID>1</ID>
        <Name>sample string 3</Name>
      </CustomerInspectionItemsDTO>
      <CustomerInspectionItemsDTO>
        <CustomerInspectionID>2</CustomerInspectionID>
        <ID>1</ID>
        <Name>sample string 3</Name>
      </CustomerInspectionItemsDTO>
    </CustomerInspectionItems>
  </CustomerComplexDTO>
  <CustomerComplexDTO>
    <CustomerInspection>
      <CustomerID>2</CustomerID>
      <CustomerVenueID>3</CustomerVenueID>
      <ID>1</ID>
      <Name>sample string 4</Name>
    </CustomerInspection>
    <CustomerInspectionItems>
      <CustomerInspectionItemsDTO>
        <CustomerInspectionID>2</CustomerInspectionID>
        <ID>1</ID>
        <Name>sample string 3</Name>
      </CustomerInspectionItemsDTO>
      <CustomerInspectionItemsDTO>
        <CustomerInspectionID>2</CustomerInspectionID>
        <ID>1</ID>
        <Name>sample string 3</Name>
      </CustomerInspectionItemsDTO>
    </CustomerInspectionItems>
  </CustomerComplexDTO>
</ArrayOfCustomerComplexDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>