<?xml version="1.0"?>
<routes xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:noNamespaceSchemaLocation="urn:magento:module:Magento_Webapi:etc/webapi.xsd">
    <route url="/V1/reports/reports" method="GET">
        <service class="Mirasvit\Reports\Api\Service\ReportApiInterface" method="getList"/>
        <resources>
            <resource ref="Mirasvit_Reports::reports_view"/>
        </resources>
    </route>
    <route url="/V1/reports/report/:identifier" method="GET">
        <service class="Mirasvit\Reports\Api\Service\ReportApiInterface" method="get"/>
        <resources>
            <resource ref="Mirasvit_Reports::reports_view"/>
        </resources>
    </route>
    <route url="/V1/reports/report/:identifier/execute" method="POST">
        <service class="Mirasvit\Reports\Api\Service\ReportApiInterface" method="execute"/>
        <resources>
            <resource ref="Mirasvit_Reports::reports_view"/>
        </resources>
    </route>

</routes>
