Changing the rest api