Added methods to RESTful api