getProjectComponentsPaginated method

Future<PageBeanComponentWithIssueCount> getProjectComponentsPaginated({
  1. required String projectIdOrKey,
  2. int? startAt,
  3. int? maxResults,
  4. String? orderBy,
  5. String? query,
})

Returns a paginated list of all components in a project. See the Get project components resource if you want to get a full list of versions without pagination.

This operation can be accessed anonymously.

Permissions required: Browse Projects project permission for the project.

Implementation

Future<PageBeanComponentWithIssueCount> getProjectComponentsPaginated(
    {required String projectIdOrKey,
    int? startAt,
    int? maxResults,
    String? orderBy,
    String? query}) async {
  return PageBeanComponentWithIssueCount.fromJson(await _client.send(
    'get',
    'rest/api/3/project/{projectIdOrKey}/component',
    pathParameters: {
      'projectIdOrKey': projectIdOrKey,
    },
    queryParameters: {
      if (startAt != null) 'startAt': '$startAt',
      if (maxResults != null) 'maxResults': '$maxResults',
      if (orderBy != null) 'orderBy': orderBy,
      if (query != null) 'query': query,
    },
  ));
}