javascript-studio / studio-gateway Goto Github PK
View Code? Open in Web Editor NEW๐ฅ A custom Swagger interpreter with AWS Lambda integration support, for local API Gateway testing
License: MIT License
๐ฅ A custom Swagger interpreter with AWS Lambda integration support, for local API Gateway testing
License: MIT License
The AWS extensions to Swagger are listed here: http://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-swagger-extensions.html
๐ป Reproduce:
The requestParameters
and the responseParameters
are currently ignored for Lambda integrations.
One of the cool feature of AWS API Gateway is custom security Lambda functions. This needs to be supported here also.
๐ป Reproduce:
Currently the security
config is ignored entirely.
โ Expected:
A Lambda function that is configured for custom security should be invoked and if successful, the result should be cached for some time.
โ Actual:
The Lambda function is never invoked.
When an SNS integration is called, it should emit a "notification" or "sns" event to allow hooking this up with @studio/notifications
.
When invoking a Lambda function with an SNS message, it must have this form: https://gist.github.com/yyolk/cd22e8a3faf7fd75997b
Also have a look here: http://stackoverflow.com/questions/34213464/aws-api-gateway-communicating-to-sns
Currently, the context
is just an empty object. It should contain the following properties that are also available in the actual AWS context and would also be useful when running the @studio/gateway
standalone:
getRemainingTimeInMillis()
functionName
memoryLimitInMB
functionVersion
invokedFunctionArn
awsRequestId
Swagger files for AWS easily become massive. A tool should be added here to make swagger files easier to manage. The local gateway implementation can then run the pre-processing on the fly.
$ref
so that it can be split up.${myVar}
).process.env
and optionally support loading env
files for the current stage.It might also be a good idea to support swagger as JS files so that they can be generated with ES6 template string.
This might be useful on it's own as a command to create (and maybe upload) modular swagger definitions. There is no need to couple this to the custom API gateway.
The tool can then be used by the JavaScript Studio API, and this project can consume the new project's API.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.