kevupton / auto-swagger-ui

7 stars 4 forks source link

Laravel Controller Generator #2

Open djfurman opened 6 years ago

djfurman commented 6 years ago

Are you aware of any packages that will scaffold something like a controller codeset to accept the request defined in a swagger.yml document and return the object described as an array?

As an API developer working on publishing the call/response contract so other dependencies can mock and work on their components; when an interface is accepted it would be really nice to be able to drive something built from that interface that to operational code.

kevupton commented 6 years ago

Hey, try have a look at php's built in yaml functionality. http://php.net/manual/en/function.yaml-parse-file.php

I think it may be what you need.