aimeos/ai-admin-jsonadm
Laravel integration for Aimeos JSONADM admin API, providing routes, controllers, and configuration to manage shop data via JSON:API-style endpoints. Ideal for building custom admin UIs, headless back offices, and automations on top of Aimeos.
Start by installing the package via Composer (composer require aimeos/ai-admin-jsonadm) and ensuring the Aimeos admin interface is properly configured in config/shop.php. The package provides a JSON API for administrative operations—its primary use is as a backend for custom admin UIs or headless systems. First, familiarize yourself with the default endpoints at /jsonadm/{resource}, where {resource} corresponds to Aimeos entities (e.g., product, catalog, customer). Send authenticated requests (using Aimeos authentication middleware or a custom provider) with proper JSON payloads. Begin with a simple read operation (e.g., GET /jsonadm/product?include=media) to confirm setup.
/jsonadm/{resource} to manage entities. Include include query parameters to eagerly load relationships (e.g., ?include=property,catalog,price).batch endpoint (POST /jsonadm/batch) to perform compound operations (e.g., create 10 products in one request), reducing round trips.\Aimeos\Admin\JsonAdm\Base and registering them in config/admin.php. Override methods like save() to inject business logic (e.g., syncing to an external PIM).data, attributes, relationships) for predictable client-side handling.config/admin.php under paths/admin/jsonadm/auth.debug => false in production. Use error.code and error.detail to programmatically handle issues (e.g., duplicate SKU).include judiciously; large result sets should be paginated (?page[offset]=0&page[limit]=50). For huge catalogs, consider &filter with indexed fields (e.g., product.status, product.mtime).Aimeos\Admin\JsonAdm\Product\Standard to intercept before/after operations using beforeSave() or afterGet() methods—ideal for adding audit logs or cache invalidation.How can I help you explore Laravel packages today?