0

I have created a custom API endpoint to retrieve data from a custom table in magento 2.

Webapi.xml file content

<route url="/V1/bs-customer-price-information/:email/:website_id" method="GET">
    <service class="BS\KoRPricing\Api\KoRPricingRepositoryInterface" method="getPriceListByCustomerAndWebsite"/>
    <resources>
        <resource ref="Magento_Catalog::products"/>
    </resources>
</route>

This endpoint giving result with Bearer Token. enter image description here

If I tried to access the same API endpoint using OAuth1.0 i am getting an error.

enter image description here

And with the same time i can access magento default API endpoints using OAuth1.0.

While developing this custom api end point is there anything i messed up with? Please advice

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.