I have create table .. I need rest api to get this table data (how to create module for this)
sharing few articles to follow:
https://magento.stackexchange.com/questions/112291/how-to-get-my-custom-table-data-from-magento-2
https://meetanshi.com/blog/get-data-from-custom-database-table-in-magento-2/
Not exact API one, but you can take logic from these website.
Instead of using api. You could use any plugin for table designing. As we are using on pixaloop app you could check it. You could use any free plugin which will help you in designing a custom table of your own choise.