imaximius / api-platform-workflow-bundle
Provides a integration API Platform with Symfony Workflow
Installs: 838
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.0
- api-platform/core: ^v2.6.0
- symfony/workflow: ^v5.3.0
README
It is an integration between API Platform and Symfony Workflows. PHP 8 and Symfony 5 implementation of - https://gist.github.com/soyuka/7c75933a6ae3d64940bb1d1f0d9fa9da
Installation
composer req imaximius/api-platform-workflow-bundle
Usage
After an installation process, when a class supports workflow it'll have additional route (assuming entity dummy):
api_dummies_state_get_item GET ANY ANY /api/dummies/{id}/state.{_format}
GET receives available states for the given resource.
Important! The bundle tries to autodetect field from workflow (workflow.{name}.marking_store.property parameter) or by default set state
field for current state. All other staff will be done automatically (including validation of stored state).