getFlowWorkflowsWithHttpInfo method

Future<Response> getFlowWorkflowsWithHttpInfo({
  1. String? page,
  2. String? size,
})

Workflows lists the caller's workflows, paged.

Workflows lists the caller's workflows, paged. The list is scoped server-side to the org's project — the page can only ever hold the caller's own workflows.

Note: This method returns the HTTP Response.

Parameters:

  • String page: Page is the 1-based page of workflows to return.

  • String size: Size is how many workflows one page holds (the product caps it at 100).

Implementation

Future<Response> getFlowWorkflowsWithHttpInfo({ String? page, String? size, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/flow/workflows';

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (page != null) {
    queryParams.addAll(_queryParams('', 'page', page));
  }
  if (size != null) {
    queryParams.addAll(_queryParams('', 'size', size));
  }

  const contentTypes = <String>[];


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