getApiMapping method
Gets an API mapping.
May throw NotFoundException. May throw TooManyRequestsException. May throw BadRequestException.
Parameter apiMappingId
:
The API mapping identifier.
Parameter domainName
:
The domain name.
Implementation
Future<GetApiMappingResponse> getApiMapping({
required String apiMappingId,
required String domainName,
}) async {
ArgumentError.checkNotNull(apiMappingId, 'apiMappingId');
ArgumentError.checkNotNull(domainName, 'domainName');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri:
'/v2/domainnames/${Uri.encodeComponent(domainName)}/apimappings/${Uri.encodeComponent(apiMappingId)}',
exceptionFnMap: _exceptionFns,
);
return GetApiMappingResponse.fromJson(response);
}