...
feedbackManager.Add(feedback)
Returns
MTOA.DomainObjects.Feedback
API Endpoint
[POST
] /api/v1/feedback
Request Body{
Parameters
Parameter | Description | Parameter Type |
---|---|---|
FeedbackDTO | Feedback | request body |
Sample request body
Code Block | ||
---|---|---|
| ||
{ "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 - OkFeedback
Example
Code Block | ||
---|---|---|
| ||
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 returnValfeedback = await _feedbackManager.Add(feedback); |