Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

feedbackManager.Add(feedback)

Returns

FeedbackTask<Feedback>

API Endpoint

POST
/api/v1/feedback

...

Parameter

Description

Parameter Type

FeedbackDTO

Feedback

request Request body

Sample request body

Code Block
languagejson
{
  "ServiceId": 0, // must be a valid service id
  "Rating": 0, // number must be between 1 and 5
  "Comment": "string",
  "CreatedDate": "2020-10-19"
}

Returns

200 OK - FeedbackOn success, 200 Ok

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

Code Block
languagec#
var feedback = new Feedback
{
    Comment = "A comment",
    Rating = 4, //must be a value between 1 - 5
    ServiceId = 11 //must be a valid service id
};

var feedback = await _feedbackManager.Add(feedback);

...