workspaceListRepoPullRequestsWithHttpInfo method

Future<Response> workspaceListRepoPullRequestsWithHttpInfo(
  1. String org,
  2. String workspace,
  3. String owner,
  4. String repo,
)

Performs an HTTP 'GET /v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/pulls' operation and returns the Response. Parameters:

Implementation

Future<Response> workspaceListRepoPullRequestsWithHttpInfo(String org, String workspace, String owner, String repo,) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/organizations/{org}/workspaces/{workspace}/repos/repositories/{owner}/{repo}/pulls'
    .replaceAll('{org}', org)
    .replaceAll('{workspace}', workspace)
    .replaceAll('{owner}', owner)
    .replaceAll('{repo}', repo);

  // ignore: prefer_final_locals
  Object? postBody;

  final queryParams = <QueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>[];


  return apiClient.invokeAPI(
    path,
    'GET',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}