I would like to reference inside the serverless.yml to an external swagger api definition.
Swagger is a widely spread way to define an api and it’s also supported from the api gateway to import external swagger definitions.
With a swagger api definition there can also be added aws features like api validation and custom api resonses to the api gateway, which will replace a lot of small serverless plugins with official aws features. Also, it gives a developer the possibility to use his api definition from other projects directly with the serverless framework and convert the project easier to serverless.
My current approach is to overwrite the serverless api with the aws put-rest-api command, but it’s not the optimal way to use my own api definition.
A similar feature was also requested in this post " Swagger and Serverless in parallel - bad idea?" but there was no solution and the there mentioned plugin looks like, that it will not be developed further.
It would be nice if I can define an api-definition path directly to the serverless resources, which would be used than to create the api-gateway.