POST api/TreatmentReview/CreateTreatmentReview

Request Information

URI Parameters

None.

Body Parameters

CreateTreatmentReviewDto
NameDescriptionTypeAdditional information
Id

integer

None.

TreatmentRequestId

integer

None.

DentistComment

string

None.

PositiveComment

string

None.

CanImproveComment

string

None.

TreatmentType

TreatmentType

None.

Reviews

Collection of GetReviewMasterDto

None.

TreatmentPrice

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": 1,
  "TreatmentRequestId": 2,
  "DentistComment": "sample string 3",
  "PositiveComment": "sample string 4",
  "CanImproveComment": "sample string 5",
  "TreatmentType": 1,
  "Reviews": [
    {
      "Id": 1,
      "ReviewTypeId": 2,
      "Rating": 3.1,
      "Description": "sample string 4",
      "ReviewId": "sample string 5"
    },
    {
      "Id": 1,
      "ReviewTypeId": 2,
      "Rating": 3.1,
      "Description": "sample string 4",
      "ReviewId": "sample string 5"
    }
  ],
  "TreatmentPrice": 1.0
}

application/xml, text/xml

Sample:
<CreateTreatmentReviewDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Silver.Agenda.Core.Domain.Model.EmergencyReviews">
  <CanImproveComment>sample string 5</CanImproveComment>
  <DentistComment>sample string 3</DentistComment>
  <Id>1</Id>
  <PositiveComment>sample string 4</PositiveComment>
  <Reviews xmlns:d2p1="http://schemas.datacontract.org/2004/07/Silver.Agenda.Core.Domain.Model.ReviewMaster">
    <d2p1:GetReviewMasterDto>
      <d2p1:Description>sample string 4</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Rating>3.1</d2p1:Rating>
      <d2p1:ReviewId>sample string 5</d2p1:ReviewId>
      <d2p1:ReviewTypeId>2</d2p1:ReviewTypeId>
    </d2p1:GetReviewMasterDto>
    <d2p1:GetReviewMasterDto>
      <d2p1:Description>sample string 4</d2p1:Description>
      <d2p1:Id>1</d2p1:Id>
      <d2p1:Rating>3.1</d2p1:Rating>
      <d2p1:ReviewId>sample string 5</d2p1:ReviewId>
      <d2p1:ReviewTypeId>2</d2p1:ReviewTypeId>
    </d2p1:GetReviewMasterDto>
  </Reviews>
  <TreatmentPrice>1</TreatmentPrice>
  <TreatmentRequestId>2</TreatmentRequestId>
  <TreatmentType>EmergencyRequest</TreatmentType>
</CreateTreatmentReviewDto>

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 'CreateTreatmentReviewDto'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.