Get information about an image voting choice

GET /Api/ImageVotingChoices/{id}

Requires verified email; Requires one of the following permissions: ImageVotings.ViewImageVotingChoice, ImageVotings.ViewActiveImageVotingChoice; 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
    • id integer(int32)
    • aspectKey string | null
    • imageVoting object
      Hide imageVoting attributes Show imageVoting attributes object
      • id integer(int32)
      • name string | null
      • description string | null
      • type string | null
      • aspects array[object] | null
        Hide aspects attributes Show aspects attributes object
        • key string | null
        • name string | null
        • description string | null
        • Additional properties are NOT allowed
      • active boolean
      • showUploaderInfo boolean
      • superIncrementAllowed boolean
      • superIncrementValue integer(int32)
      • createdAt string(date-time)
      • updatedAt string(date-time)
      • Additional properties are NOT allowed
    • imageVotingEntry object
      Hide imageVotingEntry attributes Show imageVotingEntry attributes object
      • id integer(int32)
      • title string | null
      • imageUrl string | null
      • userId string(uuid) | null
      • user object
        Hide user attributes Show user attributes object
        • name string | null
        • realName string | null
        • class string | null
        • Additional properties are NOT allowed
      • createdAt string(date-time)
      • updatedAt string(date-time)
      • Additional properties are NOT allowed
    • userId string(uuid)
    • createdAt string(date-time)
    • updatedAt string(date-time)
    • Additional properties are NOT allowed
  • 401

    Unauthorized

  • 403

    Forbidden

GET /Api/ImageVotingChoices/{id}
curl \
 -X GET https://app.lovassy.hu/Api/ImageVotingChoices/{id} \
 -H "Authorization: Bearer $ACCESS_TOKEN"
Response examples (404)
{
  "type": "string",
  "title": "string",
  "status": 42,
  "detail": "string",
  "instance": "string"
}
Response examples (200)
{
  "id": 42,
  "aspectKey": "string",
  "imageVoting": {
    "id": 42,
    "name": "string",
    "description": "string",
    "type": "string",
    "aspects": [
      {
        "key": "string",
        "name": "string",
        "description": "string"
      }
    ],
    "active": true,
    "showUploaderInfo": true,
    "superIncrementAllowed": true,
    "superIncrementValue": 42,
    "createdAt": "2024-05-04T09:42:00+00:00",
    "updatedAt": "2024-05-04T09:42:00+00:00"
  },
  "imageVotingEntry": {
    "id": 42,
    "title": "string",
    "imageUrl": "string",
    "userId": "string",
    "user": {
      "name": "string",
      "realName": "string",
      "class": "string"
    },
    "createdAt": "2024-05-04T09:42:00+00:00",
    "updatedAt": "2024-05-04T09:42:00+00:00"
  },
  "userId": "string",
  "createdAt": "2024-05-04T09:42:00+00:00",
  "updatedAt": "2024-05-04T09:42:00+00:00"
}