I need to create an API for fetching all the recently viewed products.
Any suggestions on how to do it?
Ended up using: WebbyTroops- Add-On Product APIs Module Provides everything I needed.
Thank you everyone for replying!
Here is description how to get recently viewed products by customer id:
Create an API with Mage2Gen :-