Your IP : 216.73.216.97


Current Path : /var/www/clients/client3/web2/web/vendor/magento/module-downloadable/etc/
Upload File :
Current File : /var/www/clients/client3/web2/web/vendor/magento/module-downloadable/etc/webapi.xml

<?xml version="1.0"?>
<!--
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
-->
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route url="/V1/products/:sku/downloadable-links" method="GET">
        <service class="Magento\Downloadable\Api\LinkRepositoryInterface" method="getList"/>
        <resources>
            <resource ref="Magento_Downloadable::downloadable" />
        </resources>
    </route>
    <route url="/V1/products/:sku/downloadable-links/samples" method="GET">
        <service class="Magento\Downloadable\Api\SampleRepositoryInterface" method="getList"/>
        <resources>
            <resource ref="Magento_Downloadable::downloadable" />
        </resources>
    </route>
    <route url="/V1/products/:sku/downloadable-links" method="POST">
        <service class="Magento\Downloadable\Api\LinkRepositoryInterface" method="save"/>
        <resources>
            <resource ref="Magento_Downloadable::downloadable" />
        </resources>
    </route>
    <route url="/V1/products/:sku/downloadable-links/:id" method="PUT">
        <service class="Magento\Downloadable\Api\LinkRepositoryInterface" method="save"/>
        <resources>
            <resource ref="Magento_Downloadable::downloadable" />
        </resources>
    </route>
    <route url="/V1/products/downloadable-links/:id" method="DELETE">
        <service class="Magento\Downloadable\Api\LinkRepositoryInterface" method="delete"/>
        <resources>
            <resource ref="Magento_Downloadable::downloadable" />
        </resources>
    </route>
    <route url="/V1/products/:sku/downloadable-links/samples" method="POST">
        <service class="Magento\Downloadable\Api\SampleRepositoryInterface" method="save"/>
        <resources>
            <resource ref="Magento_Downloadable::downloadable" />
        </resources>
    </route>
    <route url="/V1/products/:sku/downloadable-links/samples/:id" method="PUT">
    <service class="Magento\Downloadable\Api\SampleRepositoryInterface" method="save"/>
        <resources>
            <resource ref="Magento_Downloadable::downloadable" />
        </resources>
    </route>
    <route url="/V1/products/downloadable-links/samples/:id" method="DELETE">
        <service class="Magento\Downloadable\Api\SampleRepositoryInterface" method="delete"/>
        <resources>
            <resource ref="Magento_Downloadable::downloadable" />
        </resources>
    </route>
</routes>