getBasePathMapping method

Future<BasePathMapping> getBasePathMapping({
  1. required String basePath,
  2. required String domainName,
})

Describe a BasePathMapping resource.

May throw UnauthorizedException. May throw NotFoundException. May throw TooManyRequestsException.

Parameter basePath : Required The base path name that callers of the API must provide as part of the URL after the domain name. This value must be unique for all of the mappings across a single API. Specify '(none)' if you do not want callers to specify any base path name after the domain name.

Parameter domainName : Required The domain name of the BasePathMapping resource to be described.

Implementation

Future<BasePathMapping> getBasePathMapping({
  required String basePath,
  required String domainName,
}) async {
  ArgumentError.checkNotNull(basePath, 'basePath');
  ArgumentError.checkNotNull(domainName, 'domainName');
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri:
        '/domainnames/${Uri.encodeComponent(domainName)}/basepathmappings/${Uri.encodeComponent(basePath)}',
    exceptionFnMap: _exceptionFns,
  );
  return BasePathMapping.fromJson(response);
}