Creat new REST endpoints in my module

Hope it’s the same query that you posted here: How to develop custom module and rest api