0.1.9 • Published 9 years ago
simple-api-gateway v0.1.9
Simple API Gateway
API Gateway is awsome service in Amazon Web Services. But It is a little difficult setting, because setting item is many. This module provide to easy interactive setting for API Gateway. Very easy. Very simple.
Install
$ npm install -g simple-api-gatewaySetup(AWS-CLI)
You need AWS-CLI.
$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
$ brew install wget
$ brew install awscliAnd please setup AWS-CLI's configure
$ aws configureHow to use
Create API.
$ apigw createEdit API.
$ apigw editDeploy and Publish API.
$ apigw deployDelete API.
$ apigw deleteClient Code Examples
Use jQuery Ajax on browsers
JQuery(document).ready(function(){
JQuery.post("<your API Endpoint>",
'{ "say" : "hello" }',
function(data){
console.log(data)
},
"json"
)
})