-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow use of 'serverless-http' when reading functions #85
Comments
I'm not following what the question is here. Are you saying you'd expect the output to look like the code you posted? |
Sorry about my english and lack of clarity. I updated the OP to be more descriptive. Congratulations BTW as this project is a great plugin that allows for keeping the source project nice a tidy without Swagger UI's custom CSS/JS/HTML laying around |
In what order are your serverless plugins? If If you already have |
I've added my plugins list |
Ah, yeah.. If Perhaps if we exposed a function to generate autoswagger via Node? |
|
Right, auto-swagger via node would probably be the only way to make what you're asking possible. I unfortunately don't have a lot of free time right now, but PRs are always welcome 😄 |
Currently the plugin does not support proxy installations with custom handlers. This is understandable but many templates for "express.js project for lambda functions" come with this feature built in. As the handler should be available for the plugin API I wanted to show my setup:
in my
serverless.yml
and then on
app.js
With this setup, the
sls generate-swagger
command will generate a json description that looks like this:But the expected result would be that the plugin generates a json that would be representative of the express app which is distributed in many files/folders for big APIs.
Tested with node/lambda
The text was updated successfully, but these errors were encountered: