How to generate swagger api-docs.json in php/laravel for multiple endpoints on same controller

589 Views Asked by At

All my api endpoints are pointed to same controller and have difference responses e.g. /api/tags, /api/currencies, /api/countries are pointing to one BaseController

Should I write swagger annotations multiple time on same controller function or is there any way to generate api-docs.json dynamically?

0

There are 0 best solutions below