implemented RESTful service for commands