Update consume-rest-api.js