Giter VIP home page Giter VIP logo

studio-gateway's People

Contributors

mantoni avatar

Stargazers

 avatar

Watchers

 avatar

studio-gateway's Issues

Invoke custom security Lambda

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.

Populate context object when emitting lambda events

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

Add a pre-processor to generate and upload the swagger file

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.

  • Allow external files to be loaded with $ref so that it can be split up.
  • Support variables of some sorts (e.g. ${myVar}).
  • Use variables from process.env and optionally support loading env files for the current stage.
  • Add a command to upload and deploy the API to a stage.

It might also be a good idea to support swagger as JS files so that they can be generated with ES6 template string.

Move swagger file processing to separate project

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.