doctorx32/sylius-grid-json-driver-bundle
This bundle adds json driver to SyliusGridBundle, which helps get data from specified url and display it as common Sylius Grid.
$ composer require doctorx32/sylius-grid-json-driver-bundle
app/AppKernel.php:public function registerBundles()
{
$bundles = array(
// ...
new Sylius\Bundle\GridBundle\Driver\Json\SyliusGridJsonDriverBundle(),
// ...
);
}
sylius_grid:
grids:
app_admin_supplier:
driver:
name: json
options:
url: "/api/v1/products/"
host: "http://localhost:8000"
fields:
"[name]":
type: string
"[code]":
type: string
filters:
search:
type: string
How can I help you explore Laravel packages today?