Versions Compared

Key

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

Get a list of feedback by service Id

Description

The GetByServiceId() method is used to get a list of feedback for a service.

Package Details

Interface

IFeedbackManager

Syntax

await _feedbackManager.GetByServiceId(int serviceId, int page, int pageSize)

Returns

Task<ICollection<Feedback>>

API

GET
/api/v1/feedback/services/{serviceId}?page={page}&pageSize={pageSize}

Parameter

Description

Parameter Type

serviceId

The service Id to search for

Path

page (optional)

Specify the page to retrieve. Default value is 1

Query string

pageSize (optional)

Set the number of feedback per page. Default value is 25

Query string

Returns

On success, 200 Ok

On error, 400 Bad Request

On authorization error, 403 Forbidden

Example

Code Block
var serviceId = 1;
var feedback = await _feedbackManager.GetByServiceId(serviceId));