bcosca / fatfree

A powerful yet easy-to-use PHP micro-framework designed to help you build dynamic and robust Web applications - fast!
2.66k stars 446 forks source link

swagger codegen support [feature request] #1171

Closed albjeremias closed 4 years ago

albjeremias commented 4 years ago

Would be awesome to have a codegen for fatfree for generating an api from a swagger file! :)

examples: https://github.com/swagger-api/swagger-codegen/wiki/Server-stub-generator-HOWTO#php-slim

KOTRET commented 4 years ago

F3 distincts between the routes and the controller (in java you'd add annotations at the controller for that), so this is not an easy task. The only thing I could imagine to be generated is a controller stub with the methods for the routes in it, but the whole structure is unclear.