added basic RESTful api