Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding swagger to existing aws lambda (API Gateway)

Does anyone know of a link to a useful documentation on how to add swagger documentation to an existing aws lambda (API Gateway)? Some sort of a noob tutorial as I am totally new to swagger.

I have found some links, such as the following, which were not so useful or not specific to lambda: https://blog.cloudboost.io/adding-swagger-to-existing-node-js-project-92a6624b855b https://github.com/swagger-api/swagger-node

like image 746
aiiwa Avatar asked Feb 14 '18 09:02

aiiwa


1 Answers

I have only used Swagger with API Gateway with the old v0.5 version of serverless framework as there was a plugin that supported this easily. However, when serverless matured into v1.0 and up, at that time, there were no good plugins for Swagger integration.

Here are links you can check:

Serverless Github Issue: Swagger Integration

Reckon-Limited/serverless_swagger

doapp-ryanp/serverless-plugin-swag

I don't personally use the above though as my big serverless projects are now using GraphQL (where API documentation is part of the standard tooling :-) instead of REST.

like image 84
Noel Llevares Avatar answered Oct 02 '22 00:10

Noel Llevares