SmartThings Community

SmartThings Schema Connector example?

i am trying to integrate my device hub with smart things. I have chosen smart things schema connector to begin with as my cloud supports OAuth2.0. I have deployed it to test and have tested in the developer mode in smart things app. I cannot understand following things from the documentation:

  1. do we need device profile or device handler in smart things schema type project?
  2. what are the APIs for device discovery , state refresh and command from smart things which my my cloud has to handle?
  3. Can anyone tell me the entire flow of steps to integrate custom devices into smart things ?
    Thanks for the help