cd public
swagger-codegen generate -i api_spec.yaml -l swagger -o swagger-folder
cp swagger-folder/swagger.json ./api_spec.json
rm -rf swagger-folder
You need to have installed Swagger Codegen
netlify-lambda serve lambda/events/
- Frontend repo : https://github.com/OSWeekends/EventPoints
- Backend repo : https://github.com/OSWeekends/eventpoints-backend
- This repo branch : https://github.com/OSWeekends/eventpoints-backend/tree/swagger
This branch is deployed into Netlify. It uses a static cdn to server the swagger page. It also use the Lambda Functions to mockup the API.
The swagger page was built using Swagger UI