/restaurant/rating

This can be used to get detailed information of restaurant’s ratings

Request structure

POST nameValueRequired?
restaurant_idintegerYes

Response

{
  "reviews":[
    {
      "username":"POPALAUTE-1220528105",
      "timestamp":"1220528626",
      "comment":"free-form textual review by customer. If customer hasn’t given such review, this field is missing from response.",
      "message":"Toimi oikein hyvin!
Kiitos teille.",

      "comment":"average for this review",
      "average":0
    },
    {
      "username":"POPALAUTE-1231408524",
      "timestamp":"1231408678",
      "message":"Mikan testipalaute kehityspalvelimelta jou!",
      "average":0
    },
    {
      "username":"POPALAUTE-1232093700",
      "timestamp":"1232093793",
      "message":"Testipalaute 
-Mika",
      "average":0
    },
    {
      "username":"POPALAUTE-1232360474",
      "timestamp":"1232360516",
      "message":"Testipalaute load balancoidusta verkosta.. - Mika",
      "average":0
    },
    {
      "username":"POPALAUTE-1234720544",
      "timestamp":"1234720738",
      "message":"Tuolta Järvenpääläisestä Demo-pitseriasta ei tule pitsat kotiin koskaan, vaikka tilausvahvistus tulikin, perkele",
      "average":0
    },
    {
      "username":"POPALAUTE-1253357641",
      "timestamp":"1253357899",
      "message":"Oliko tämä testi? 

en ymmärrä

mary",
      "average":0
    },
    {
      "username":"POPALAUTE-1253802499",
      "timestamp":"1253802643",
      "message":"soittakaa mulle",
      "average":0
    },
    {
      "username":"POPALAUTE-1260448232",
      "timestamp":"1260448466",
      "message":"Voihan skekke mikä tässä tilauksen lähettämisessäkin nyt on, kun kestää ja kestää kestää.",
      "average":0
    },
    {
      "username":"POPALAUTE-1269606318",
      "timestamp":"1269606550",
      "message":"test test test test test test ",
      "average":0
    },
   {
      "username":"PODEMOTS",
      "timestamp":"0",
      "message":"Nyaha",
      "average":2.75
    },
  ],

  "comment":"average of all reviews to restaurant",
  "average":3.9088516746411,

  "comment":"if portion was too small or was really big; how customer liked size of the product",
  "portion_size":4.4545454545455,

  "comment":"what was quality of the portion",
  "portion_quality":3.5681818181818,

  "comment":"how good service the restaurant is offering",
  "service_quality":3.6578947368421,
}

Reviews contains array of free-form reviews left for the restaurant. It also contains timestamp and username of person who left the review and average rating, which is 0 if user has not given any ratings and decimal between 1 and 5 otherwise.

Expectable errors

See error conventions section for explanation how error system works.

Label Additional data Description
NO_RESTAURANT_IDNoneThere should be a restaurant id.
NO_RESTAURANT_FOUNDNoneI need better restaurant id.
NO_REVIEW_RESTAURANTNoneThere is no reviews done for this restaurant so far. Just showing the error to the customer and/or telling what else are both fine.