replace with restApi.get(entityUri, {'attributes': attributes, 'expand': ['attributes']}) and leave it up to the rest client to post or get the params