flightphp / core

An extensible micro-framework for PHP
https://docs.flightphp.com
MIT License
2.6k stars 407 forks source link

Possible way to generate OpenAPI specification on the fly. #508

Closed iamkarshe closed 5 months ago

iamkarshe commented 6 months ago

Once all routes are made, based on method and route prefix, generating Open API specification and build the documentation in folder.

n0nag0n commented 6 months ago

Hmm........this could be cool. I would do it as a separate package in the flightphp org. You can just run the Flight::getRoutes() and it would fetch all the routes and then you could build the specification at least based on that....it would be lacking comments and examples and such.....have you implemented anything related to this on your own and how'd it go?