From d33c1e6bf064da08a30dbbc331ef3ec7ffde13e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20B=C3=A9jean?= <nicolas@bejean.eu> Date: Fri, 8 May 2020 17:38:09 +0200 Subject: [PATCH] =?UTF-8?q?D=C3=A9veloppement=20des=20API?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- etc/webapi.xml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 etc/webapi.xml diff --git a/etc/webapi.xml b/etc/webapi.xml new file mode 100755 index 0000000..50ca8f2 --- /dev/null +++ b/etc/webapi.xml @@ -0,0 +1,22 @@ +<?xml version="1.0"?> +<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd"> + <!-- Category Widget --> + <route url="/V1/categorywidget/:sliderId" method="GET"> + <service class="NicolasBejean\CategoryWidget\Api\CategoryWidgetRepositoryInterface" method="getById"/> + <resources> + <resource ref="NicolasBejean_CategoryWidget::global"/> + </resources> + </route> + <route url="/V1/categorywidget/search" method="GET"> + <service class="NicolasBejean\CategoryWidget\Api\CategoryWidgetRepositoryInterface" method="getList"/> + <resources> + <resource ref="NicolasBejean_CategoryWidget::global"/> + </resources> + </route> + <route url="/V1/categorywidget/:categoryWigetId" method="DELETE"> + <service class="NicolasBejean\CategoryWidget\Api\CategoryWidgetRepositoryInterface" method="deleteById"/> + <resources> + <resource ref="NicolasBejean_CategoryWidget::delete"/> + </resources> + </route> +</routes> -- GitLab