serverless-aws-documentation | Serverless 1.0 plugin | REST library
kandi X-RAY | serverless-aws-documentation Summary
kandi X-RAY | serverless-aws-documentation Summary
Amazon introduced a new documentation feature for it's API Gateway on AWS at the end of 2016. With this you can add manually written documentation to all parts of API Gateway such as resources, requests, responses or single path or query parameters. When exporting Swagger from API Gateway these documentation is added to the other information to create a more human understandable documentation. In addition to this documentation this plugin also adds support to add models to API Gateway and use it with the serverless functions. Models are JSON Schemas that define the structure of request or response bodies. This includes property structure, their types and their validation. More about this you'll find here:
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Replace model
- Replace references to REST endpoint
- Extracts the model definition
- Determines the properties of a type
- Creates the output type of output file .
- Determine the extension type .
- Get the documentation properties from the docs object
- Convert a map to object
- Get the file extension .
serverless-aws-documentation Key Features
serverless-aws-documentation Examples and Code Snippets
Community Discussions
Trending Discussions on serverless-aws-documentation
QUESTION
How to integrate gateway response using serverless framework?
I'm not able to find documentation in serverless.com as well as in plugin serverless-aws-documentation
...ANSWER
Answered 2017-Jun-12 at 08:02Good question. I believe you can do it in the s-function.json
file like so:
QUESTION
I want to define request and response models. I use the Serverless Framework with AWS and everything I'm seeing recommends using serverless-aws-documentation
The README says that I need to have this line in custom.documentation.models.MODELNAME
ANSWER
Answered 2017-Nov-22 at 15:03Just a guess (posting it as an answer to preserve formatting) - your top-level entity in the schema should be an object
, not an array
, something like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install serverless-aws-documentation
To download the deployed documentation you just need to use serverless downloadDocumentation --outputFileName=filename.ext. For yml or yaml extensions application/yaml content will be downloaded from AWS. In any other case - application/json. Optional argument --extensions ['integrations', 'apigateway', 'authorizers', 'postman']. Defaults to 'integrations'.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page