Hi,

I am updating API rating from 5 star rating to 10 star rating base on the
set of usability improvements we are planning for store.

I am also updating the Rest API to support the same.

Get operation of rating API is returning the following object format.

   1. avgRating:"4"
   2. count:1
   3. list:[{…}]
   4. userRating:"4"

Put operation to the Rating api returns the following.

   1. rating: 5
   2. ratingId:"5f31ff42-1bc0-4295-8123-189dd34499dc"
   3. username:"admin"

Returning the userRating along with the response of the PUT operation will
remove the need for a second call to get the average rating to update the
UI.

Will it break the RESTFull ness of the API, if I do this change?

thanks,
Chanaka
-- 
Chanaka Jayasena
Associate Tech Lead,
email: [email protected]; cell: +94 77 4464006
blog: http://chanaka3d.blogspot.com
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to