Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

API Generator (Feature request) #3

Open
jonny7 opened this issue Aug 10, 2018 · 3 comments
Open

API Generator (Feature request) #3

jonny7 opened this issue Aug 10, 2018 · 3 comments
Assignees
Labels
type:feature New feature

Comments

@jonny7
Copy link

jonny7 commented Aug 10, 2018

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 🙂

@samdark samdark transferred this issue from yiisoft/yii2 Nov 3, 2018
@samdark samdark added the type:feature New feature label Nov 3, 2018
@cebe
Copy link
Member

cebe commented Nov 14, 2018

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 cebe self-assigned this Nov 14, 2018
@xepozz
Copy link
Member

xepozz commented Dec 4, 2019

@cebe How your progress?
will It be compatible with yii3?

@cebe
Copy link
Member

cebe commented Dec 4, 2019

See https://github.com/cebe/yii2-app-api, it is currently Yii2 only.

@rustamwin rustamwin self-assigned this Apr 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:feature New feature
Projects
None yet
Development

No branches or pull requests

5 participants