POST | /rating/ | Create RatingScore | Create rating from booking |
---|
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | body | Guid | Yes | |
BookingId | body | int | Yes | Id of the booking |
Identifier | body | string | Yes | The identifier for the booking, use to verify the booking. |
RatingScore | body | int | Yes | The rating score between 1 and 5. |
Review | body | CreateReview | No | The review for the rating |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Title | form | string | No | The title for the review |
Description | form | string | No | The description for the review |
Author | form | string | No | The review author |
ReviewAnswer | form | string | No | The review author |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
CompanyId | form | Guid | No | |
BookingId | form | int | No | Id of the booking |
Status | form | int | No | The status of the rating, 1 = Active |
RatingScore | form | int | No | The rating score |
Review | form | RatingReviewResponse | No | The review if any exists to the rating |
CreatedDate | form | DateTime | No | |
UpdatedDate | form | DateTime | No |
Name | Parameter | Data Type | Required | Description |
---|---|---|---|---|
Title | form | string | No | The title for the review |
Description | form | string | No | The description for the review |
RatingScore | form | int | No | The rating score |
Author | form | string | No | The review author |
Created | form | DateTime | No | The created date |
ReviewAnswer | form | string | No | The review answer from the company |
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /rating/ HTTP/1.1
Host: testapi.bokamera.se
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"BookingId":0,"Identifier":"String","RatingScore":0,"Review":{"Title":"String","Description":"String","Author":"String","ReviewAnswer":"String"}}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"BookingId":0,"Status":0,"RatingScore":0,"Review":{"Title":"String","Description":"String","RatingScore":0,"Author":"String","ReviewAnswer":"String"}}