<?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/initpayment/me" method="GET">
        <service class="BlueLogic\PayByMobile\Api\PayByInterface" method="generateUrl"/>
        <resources>
            <resource ref="self"/>
        </resources>
        <data>
            <parameter name="customerId" force="true">%customer_id%</parameter>
        </data>
    </route>
    <route url="/V1/initpayment/" method="POST">
        <service class="BlueLogic\PayByMobile\Api\PayByInterface" method="generateGuestUrl"/>
        <resources>
            <resource ref="anonymous"/>
        </resources>
    </route>
    <route url="/V1/verifyPaymentStatus/me" method="GET">
        <service class="BlueLogic\PayByMobile\Api\PayByInterface" method="verifyPaymentStatus"/>
        <resources>
            <resource ref="self"/>
        </resources>
        <data>
            <parameter name="customerId" force="true">%customer_id%</parameter>
        </data>
    </route>
    <route url="/V1/verifyPaymentStatus/" method="POST">
        <service class="BlueLogic\PayByMobile\Api\PayByInterface" method="verifyGuestPaymentStatus"/>
        <resources>
            <resource ref="anonymous"/>
        </resources>
    </route>
</routes>
