Working on Restful API