Get results of an image voting

GET /Api/ImageVotings/{id}/Results

Requires verified email; Requires one of the following permissions: ImageVotings.ViewImageVotingResults, ImageVotings.ViewActiveImageVotingResults; Requires the following features to be enabled: ImageVotings

Path parameters

  • id integer(int32) Required

Responses

  • 404 application/json

    Not Found

    Hide response attributes Show response attributes object
    • type string | null
    • title string | null
    • status integer(int32) | null
    • detail string | null
    • instance string | null
    • Additional properties:
  • 200 application/json

    Success

    Hide response attributes Show response attributes object
    • chooserCount integer(int32)
    • incrementerCount integer(int32)
    • uploaderCount integer(int32)
    • entries array[object] | null
      Hide entries attributes Show entries attributes object
      • id integer(int32)
      • title string | null
      • imageUrl string | null
      • choicesCount integer(int32)
      • incrementSum integer(int32)
      • aspects array[object] | null
        Hide aspects attributes Show aspects attributes object
        • key string | null
        • name string | null
        • description string | null
        • choicesCount integer(int32)
        • incrementSum integer(int32)
        • Additional properties are NOT allowed
      • Additional properties are NOT allowed
    • Additional properties are NOT allowed
  • 401

    Unauthorized

  • 403

    Forbidden

GET /Api/ImageVotings/{id}/Results
curl \
 -X GET https://app.lovassy.hu/Api/ImageVotings/{id}/Results \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (200)
{
  "chooserCount": 42,
  "incrementerCount": 42,
  "uploaderCount": 42,
  "entries": [
    {
      "id": 42,
      "title": "string",
      "imageUrl": "string",
      "choicesCount": 42,
      "incrementSum": 42,
      "aspects": [
        {
          "key": "string",
          "name": "string",
          "description": "string",
          "choicesCount": 42,
          "incrementSum": 42
        }
      ]
    }
  ]
}