Write Config to files (.rules , .things , .items)

Here is a good explanation with examples by @rlkoshak for using REST API: