Skip to content

Latest commit

 

History

History
54 lines (37 loc) · 602 Bytes

rating.rest

File metadata and controls

54 lines (37 loc) · 602 Bytes

/gallery/:app/rating

Contents

Retrieve rating of a published appliance.

Example:

< GET /gallery/123/rating

> 200 Ok
>
> {
>   uri: "/gallery/123"
> , ratings: "5"
> , average: "5.0"
> }

Rate a published appliance.

Example:

< POST /gallery/123/rating
<
< {
<   rating: "3.5"
< }

> 200 Ok
> Content-Location: /gallery/123/rating
>
> {
>   uri: "/gallery/123"
> , ratings: "6"
> , average: "4.75"
> }