Retrieve the number of feedback filtered by service Id
Description
This method is used to retrieve the number of feedback for a service.
Package Details
Interface
IFeedbackManager
Syntax
await _feedbackManager.GetCountByServiceId(int serviceId, int userId)
Returns
Task<int>
API Endpoint
GET
/api/v1/feedback/services/{serviceId}/count
Parameter | Description | Parameter Type |
---|---|---|
serviceId | The service Id to search for | Path |
Returns
On success, 200 Ok
On error, 400 Bad Request
On authorization error, 403 Forbidden
Example
var serviceId = 2; var feedbackCount = await _feedbackManager.GetCountByServiceId(serviceId);