getGraphqlApi method
Retrieves a GraphqlApi
object.
May throw BadRequestException. May throw NotFoundException. May throw UnauthorizedException. May throw InternalFailureException. May throw AccessDeniedException.
Parameter apiId
:
The API ID for the GraphQL API.
Implementation
Future<GetGraphqlApiResponse> getGraphqlApi({
required String apiId,
}) async {
ArgumentError.checkNotNull(apiId, 'apiId');
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v1/apis/${Uri.encodeComponent(apiId)}',
exceptionFnMap: _exceptionFns,
);
return GetGraphqlApiResponse.fromJson(response);
}