Custom Shopware 6 API endpoint for seo urls.
- Download Repository
- Place files in: custom/plugins/DmfApi
-
bin/console plugin:refresh bin/console plugin:install --activate DmfApi ./psh.phar cache
http://DOMAIN/sales-channel-api/v1/dmf/seo-url
You can also set filter or limit https://docs.shopware.com/en/shopware-platform-dev-en/api/filter-search-limit,
Example: if you want to find only entries that match the url "myurl":
http://DOMAIN/sales-channel-api/v1/dmf/seo-url?filter[seoPathInfo]=myurl
http://DOMAIN/sales-channel-api/v1/dmf/page
MIT