GET user/{userId}/ratings

Get the list of content ratings (upvotes and downvotes) made by a user.

Example

GET /api/v1/user/66a5db1f-2785-498d-9068-e24ddbba03f2/ratings HTTP/1.1
Accept: application/json
Authorization: Bearer ...
----------------------------------------
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
ETag: ...

{
  "6cb1b1c7-0022-4a13-ab8a-6e830d244e92": "1",
  "95d1efb3-3c93-4789-9ae7-8df87836bb3e": "0",
  "b730f9d1-ae9c-400a-b9cd-6530897d2a31": "1"
}

Security

Authentication is required for this method, and access is restricted to the user.

URL Parameters

NameDescriptionValue
userIdthe ID of the user as a GUID with dashesstring

Query Parameters

NONE

Request Body

NONE

Response

Successful responses are code 200 with data in the response body. Error responses are standard.

Response Body

The response is a map whose keys are content IDs and whose values are the rating the user gave to that content item. Values are strings; "1" indicates an upvote and "0" indicates a downvote.