Hi, OpenHab has the nice feature to auto create and link Channels to Items. How does OpenHab know what kind of item it has to crate and how is it getting the information about states etc. . Is this information accessable through Rest API?
The best way to learn about the REST API is to install the REST API Docs and experiment. They are live docs that let you send commands and make queries from the API.
From there you will see that the response to the Things queries include an itemType field.