Nopik / serverless-serve

Local lambda HTTP serve plugin for Serverless framework, a.k.a. API Gateway simulator.
119 stars 19 forks source link

Add partial support for integration responses #5

Closed zaccharles closed 8 years ago

zaccharles commented 8 years ago

This change adds support for emulating parts of API Gateway's integration responses. At the moment it only supports status codes. I've also included wrapping error messages in an object containing a errorMessage property, which is default Lambda behavior.

This change adds the base work for supporting other parts of integration responses, however, I don't have a good enough understanding of them at the moment to confidently implement them.

I'm relatively new to these AWS services, and serverless, so let me know if my understanding is incorrect. I want to help make this plugin a near-perfect emulation of API gateway and Lambda!

Nopik commented 8 years ago

This looks good, but after recent PR merges to 0.1.0 compatibility is not cleanly merging anymore. Could you please update it to latest code? Then I'll merge this in ASAP.

zaccharles commented 8 years ago

Fixed @Nopik. I also squished it down to one commit.