resolve method

Future<DynamiteResponse<ReferenceApiResolveResponseApplicationJson, void>> resolve({
  1. required BuiltList<String> references,
  2. int? limit,
  3. bool? oCSAPIRequest,
})

Resolve multiple references.

Returns a Future containing a DynamiteResponse with the status code, deserialized body and headers. Throws a DynamiteApiException if the API call does not return an expected status code.

Parameters:

  • references References to resolve.
  • limit Maximum amount of references to resolve. Defaults to 1.
  • oCSAPIRequest Required to be true for the API request to pass. Defaults to true.

Status codes:

  • 200: References returned

See:

Implementation

Future<_i1.DynamiteResponse<ReferenceApiResolveResponseApplicationJson, void>> resolve({
  required BuiltList<String> references,
  int? limit,
  bool? oCSAPIRequest,
}) async {
  final _request = $resolve_Request(
    references: references,
    limit: limit,
    oCSAPIRequest: oCSAPIRequest,
  );
  final _response = await _rootClient.httpClient.send(_request);

  final _serializer = $resolve_Serializer();
  final _rawResponse =
      await _i1.ResponseConverter<ReferenceApiResolveResponseApplicationJson, void>(_serializer).convert(_response);
  return _i1.DynamiteResponse.fromRawResponse(_rawResponse);
}