Open jonny7 opened 6 years ago
I am currently working on a generator that will take an OpenAPI 3 spec and generate database, models, controllers from it. The base work is happening in https://github.com/cebe/php-openapi/
Other forms of generating API code are also possible.
@cebe How your progress? will It be compatible with yii3?
See https://github.com/cebe/yii2-app-api, it is currently Yii2 only.
This is feature request for 3.0. I wondered about having Gii include an API generator/Template. I think Gii is great! But I haven't been able to see a way to generate a base API. But something that could analyse models and relations as Gii does and then create potentially Repository Pattern or JSON API style or similar based off those would be a cool concept. Spring has something similar where you can use their starter wizard in combination with JPA to generate entities etc.
No worries, if you don't think this is a good idea :slightly_smiling_face: