Working restful api without deletion