getRegistryCatalogData method

Future<GetRegistryCatalogDataResponse> getRegistryCatalogData()

Retrieves catalog metadata for a public registry.

May throw ServerException. May throw UnsupportedCommandException.

Implementation

Future<GetRegistryCatalogDataResponse> getRegistryCatalogData() async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'SpencerFrontendService.GetRegistryCatalogData'
  };
  final jsonResponse = await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
  );

  return GetRegistryCatalogDataResponse.fromJson(jsonResponse.body);
}