Initialize API with AWS configuration
Configuration object for API
Cancels an inflight request for either a GraphQL request or a Rest API request.
request to cancel
If the request was cancelled
Configure API part with aws configurations
Make a DEL request
The api name of the request
The path of the request
A promise that resolves to an object with response status and JSON data, if successful.
Getting endpoint for API
The name of the api
The endpoint of the api
Make a GET request
The api name of the request
The path of the request
A promise that resolves to an object with response status and JSON data, if successful.
to get the operation type
Executes a GraphQL operation
GraphQL Options
An Observable if queryType is 'subscription', else a promise of the graphql result from the query.
Make a HEAD request
The api name of the request
The path of the request
A promise that resolves to an object with response status and JSON data, if successful.
Checks to see if an error thrown is from an api request cancellation
Any error
If the error was from an api request cancellation
Make a PATCH request
The api name of the request
The path of the request
A promise that resolves to an object with response status and JSON data, if successful.
Make a POST request
The api name of the request
The path of the request
A promise that resolves to an object with response status and JSON data, if successful.
Make a PUT request
The api name of the request
The path of the request
A promise that resolves to an object with response status and JSON data, if successful.
Use RestApi or GraphQLAPI to reduce your application bundle size Export Cloud Logic APIs