Versions Compared

Key

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

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

Code Block
await _feedbackManager.GetCountByServiceId(int serviceId, int userId)

Returns

Task<int>

API

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

Code Block
languagec#
var serviceId = 2;
var feedbackCount = await _feedbackManager.GetCountByServiceId(serviceId);