You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
… make:entity command (dunglas)
This PR was squashed before being merged into the 1.0-dev branch (closes#178).
Discussion
----------
API Platform support: add an --api-resource flag for the make:entity command
This PR adds a new `--api-resource` flag to the `make:entity` command. It allows to automatically a REST endpoint with CRUD operations for the given resource class using API Platform:
![screencast](https://user-images.githubusercontent.com/57224/39909149-c6c386e6-54f1-11e8-83a2-bfcd10f5ed39.gif)
I need some guidance about how to add test for this (actually, a few tests are red locally on my Mac even on master).
Fixes#175.
Commits
-------
1c8cf9a Make the Generator class a service
3d2918a Add a functional test
e6ad344 Check if the class exists
ae7c296 Add an interactive question
37b3b9c API Platform support: add an --api-resource flag for the make:entity command
As an alternative to #158, what do you think about adding a new
--api-platform-resource
option to the entity generator that will automatically:@ApiResource
annotation to the generated entitycomposer req api
if API Platform isn't already installedThe text was updated successfully, but these errors were encountered: