Rating API provides a range of actions for manipulating rating within Unet.
rating/PARENT_RESOURCE_URI — URI that contains a parent endpoint (e.g. RESOURCE_URIentries/ID).
| Prefix | Endpoint | Description |
|---|---|---|
| PARENT_RESOURCE_URI | rating/ | Getting a list of those who rated |
| PARENT_RESOURCE_URI | rating/add/ | Adding a rating |
| PARENT_RESOURCE_URI | rating/delete/ | Deleting a rating |
rating/rating/add/rating/delete/| Name | Description |
|---|---|
limit (o) |
Number of items expected in response. |
cursor (o) |
The value of the |
| Name | Description |
|---|---|
items[] |
|
limit |
Number of returned items (items per page). |
next_cursor |
URL for the next portion of items (next page). |
prev_cursor |
URL for the previous portion of items (previous page). |
total_count |
Total number of items. |
| Name | Description |
|---|---|
uid |
User ID. |
voted |
Possible values:
|
voting_time |
Voting time. |
| Name | Description |
|---|---|
likes |
Total number of likes. |
dislikes |
Total number of dislikes. |
voted |
Exists, if the current user voted for the material.
|