0

I have a magento store for which I was using the Magestore Bannerslider module to show a simple carousel on the homepage.

But now I am experimenting with a headless approach, and there's no API to get the banner details from the database.

Any ideas how will I create a custom API module to query the table of this module

magestore_bannerslider_banner

Thanks!

1
  • which version of magento are you using ? Commented May 14, 2019 at 12:34

1 Answer 1

0

Do you want to get the data from the database using rest? Are you using it internally (in the same code/site/environment)? Or you want to get the banners to somewhere externally?

If it is the second case, then you have to ask the developers to implement that.

If it is the first case, then you should just get the collection.

If you want to implement your own API that gets data from that table... well... it's not as easy. You have to create a service contract for that.

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.