edited Rest
edited
added a method in rest