Hi @Rahul_Banerjee Welcome to SmartThings Community
Maybe this tutorial can help you Schema Devices and Custom Capabilities, the tutorial provides an OAuth Server example that you can use to test your Connector.
If you have any questions, please let me know