getGraphqlApi method

Future<GetGraphqlApiResponse> getGraphqlApi({
  1. required String apiId,
})

Retrieves a GraphqlApi object.

May throw AccessDeniedException. May throw BadRequestException. May throw InternalFailureException. May throw NotFoundException. May throw UnauthorizedException.

Parameter apiId : The API ID for the GraphQL API.

Implementation

Future<GetGraphqlApiResponse> getGraphqlApi({
  required String apiId,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/apis/${Uri.encodeComponent(apiId)}',
    exceptionFnMap: _exceptionFns,
  );
  return GetGraphqlApiResponse.fromJson(response);
}