Skip to main content
GET
/
votes
Get All Votes
curl --request GET \
  --url https://api.example.com/votes
[
  {
    "id_vote": 1,
    "id_user": 10,
    "id_movie": 5,
    "note": "YES",
    "comments": "Excellent cinematography and storytelling",
    "modification_count": 0,
    "User": {
      "id_user": 10,
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane.doe@example.com"
    },
    "Movie": {
      "id_movie": 5,
      "title": "The Journey"
    },
    "history": []
  }
]
This endpoint requires ADMIN authentication.
Retrieves all votes in the system with associated user and movie information, including vote history.

Response

Returns an array of vote objects with the following structure:
id_vote
integer
Unique identifier for the vote
id_user
integer
ID of the user who cast the vote
id_movie
integer
ID of the movie being voted on
note
enum
Vote rating. Possible values: YES, NO, TO DISCUSS
comments
string
Optional comments from the jury member
modification_count
integer
Number of times the vote has been modified (for second round voting)
User
object
Associated user information
Movie
object
Associated movie information
history
array
Array of vote history records showing previous values
[
  {
    "id_vote": 1,
    "id_user": 10,
    "id_movie": 5,
    "note": "YES",
    "comments": "Excellent cinematography and storytelling",
    "modification_count": 0,
    "User": {
      "id_user": 10,
      "first_name": "Jane",
      "last_name": "Doe",
      "email": "jane.doe@example.com"
    },
    "Movie": {
      "id_movie": 5,
      "title": "The Journey"
    },
    "history": []
  }
]