How to use @aws-amplify/api-rest - 1 common examples

To help you get started, we’ve selected a few @aws-amplify/api-rest examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github aws-amplify / amplify-js / packages / api-graphql / src / GraphQLAPI.ts View on Github external
createInstance() {
		logger.debug('create Rest instance');
		if (this._options) {
			this._api = new RestClient(this._options);
			return true;
		} else {
			return Promise.reject('API not configured');
		}
	}

@aws-amplify/api-rest

Api-rest category of aws-amplify

Apache-2.0
Latest version published 4 days ago

Package Health Score

92 / 100
Full package analysis

Popular @aws-amplify/api-rest functions

Similar packages