POST api/booking/AddInspectionRatings

Request Information

URI Parameters

None.

Body Parameters

Collection of BookingInspectionRatingPost
NameDescriptionTypeAdditional information
BookingInspectionId

integer

None.

BookingId

integer

None.

InspectionPointId

integer

None.

RatingId

integer

None.

Price

decimal number

None.

Quantity

byte

None.

LabourPrice

decimal number

None.

PartModelId

integer

None.

OperationType

OperationType

None.

IsPartOfPackage

boolean

None.

Request Formats

application/json, text/json

Sample:
[
  {
    "BookingInspectionId": 1,
    "BookingId": 1,
    "InspectionPointId": 1,
    "RatingId": 1,
    "Price": 1.0,
    "Quantity": 64,
    "LabourPrice": 1.0,
    "PartModelId": 1,
    "OperationType": 1,
    "IsPartOfPackage": true
  },
  {
    "BookingInspectionId": 1,
    "BookingId": 1,
    "InspectionPointId": 1,
    "RatingId": 1,
    "Price": 1.0,
    "Quantity": 64,
    "LabourPrice": 1.0,
    "PartModelId": 1,
    "OperationType": 1,
    "IsPartOfPackage": true
  }
]

application/xml, text/xml

Sample:
<ArrayOfBookingInspectionRatingPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PostLibrary.Booking">
  <BookingInspectionRatingPost>
    <BookingId>1</BookingId>
    <BookingInspectionId>1</BookingInspectionId>
    <InspectionPointId>1</InspectionPointId>
    <IsPartOfPackage>true</IsPartOfPackage>
    <LabourPrice>1</LabourPrice>
    <OperationType>Add</OperationType>
    <PartModelId>1</PartModelId>
    <Price>1</Price>
    <Quantity>64</Quantity>
    <RatingId>1</RatingId>
  </BookingInspectionRatingPost>
  <BookingInspectionRatingPost>
    <BookingId>1</BookingId>
    <BookingInspectionId>1</BookingInspectionId>
    <InspectionPointId>1</InspectionPointId>
    <IsPartOfPackage>true</IsPartOfPackage>
    <LabourPrice>1</LabourPrice>
    <OperationType>Add</OperationType>
    <PartModelId>1</PartModelId>
    <Price>1</Price>
    <Quantity>64</Quantity>
    <RatingId>1</RatingId>
  </BookingInspectionRatingPost>
</ArrayOfBookingInspectionRatingPost>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'List`1'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.