Hi! We are adapting the client to the new data model and we have a doubt about how to update a review. We were using the following data format to update a review: data = { 'reviewBody': '' + reviewBody, 'reviewRating': { '@type': 'Rating', 'ratingValue': parseInt(ratingValue, 10) } }; In spite of returning a 204 successful code, it corrupts the value (). So we have taken a look again to the API definition http://docs.tourguide.apiary.io/#reference/api-especification-for-tourguide/review/update-reviewand we found that the expected data format is: { "reviewRating": { "ratingValue": 3 } } We have tried it, and the data corruption remains. [data_before_update.png] shows how the data was before perform the update. [patch_request.png] illustrates the performed request in the Firefox developer tools. Regards, FIWAREULPGC, -------------- next part -------------- An HTML attachment was scrubbed... URL: <https://lists.fiware.org/private/fiware-developer-experience/attachments/20160510/9b16ee85/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: data_after_update.png Type: image/png Size: 101723 bytes Desc: not available URL: <https://lists.fiware.org/private/fiware-developer-experience/attachments/20160510/9b16ee85/attachment.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: data_before_update.png Type: image/png Size: 94824 bytes Desc: not available URL: <https://lists.fiware.org/private/fiware-developer-experience/attachments/20160510/9b16ee85/attachment-0001.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: patch_request.png Type: image/png Size: 100688 bytes Desc: not available URL: <https://lists.fiware.org/private/fiware-developer-experience/attachments/20160510/9b16ee85/attachment-0002.png>
You can get more information about our cookies and privacy policies clicking on the following links: Privacy policy Cookies policy