riskReferenceWithHttpInfo method

Future<Response> riskReferenceWithHttpInfo(
  1. String set_, {
  2. String? after,
  3. int? limit,
})

Reference describes one set and lists your org's overrides in it.

Reference describes one set and lists your org's overrides in it. The set half is public data about a published list — its version, its publishers, their licences and how current each one is. The overrides half is yours alone: it is read from your organisation's own store, and no other organisation's entries can appear in it.

Note: This method returns the HTTP Response.

Parameters:

  • String set_ (required):

  • String after: After pages the override listing: the last key of the previous page.

  • int limit: Limit caps the override listing: default 200, maximum 1000.

Implementation

Future<Response> riskReferenceWithHttpInfo(String set_, { String? after, int? limit, }) async {
  // ignore: prefer_const_declarations
  final path = r'/v1/reference/{set}'
    .replaceAll('{set}', set_);

  // ignore: prefer_final_locals
  Object? postBody;

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

  if (after != null) {
    queryParams.addAll(_queryParams('', 'after', after));
  }
  if (limit != null) {
    queryParams.addAll(_queryParams('', 'limit', limit));
  }

  const contentTypes = <String>[];


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