Hello @morshed!
Is there any way to get all products of a specific category through rest api?
This will require custom coding which is beyond the scope of this forum.
I would suggest you check this with a developer who will help you get the required code/customization.
You can check related support documentation here:
https://woocommerce.com/document/woocommerce-rest-api/
https://woocommerce.github.io/woocommerce-rest-api-docs/
You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, as well.
Lastly, for direct assistance with code customizations, we recommend consulting with the WooCommerce Customizations Partners. https://woocommerce.com/customizations/
Nevertheless, I’m going to leave this thread open for a bit to see if anyone is able to chime in to help you out here.`