change RESTApi model