This API lists votes as a summary.
Only users with administrator privileges can use this endpoint.
GET /api/v3/vote
{
"data": [
voteSummary,
...
]
}
Represents a summary of votes in Dremio by Dataset.
{
"id": String [immutable, generated by Dremio],
"votes": Number [immutable],
"datasetId": String [immutable],
"datasetPath": [String] [immutable],
"datasetType": String ["PHYSICAL", "VIRTUAL"] [immutable],
"datasetReflectionCount": Number [immutable],
"entityType": "vote-summary" [immutable, generated by Dremio]
}
403
- user does not have permission to view votes.
This example lists votes. In this case, there are no votes.
Postman is used to generate the example.
curl -X GET \
http://localhost:9047/api/v3/vote \
-H 'Authorization: _dremioerjt7vnhtljpus01rfibddefdg' \
-H 'Postman-Token: 830c3a24-e325-4ea8-92d7-b4f3e59fd508' \
-H 'cache-control: no-cache'
import requests
url = "http://localhost:9047/api/v3/vote"
payload = ""
headers = {
'Authorization': "_dremioerjt7vnhtljpus01rfibddefdg",
'cache-control': "no-cache",
'Postman-Token': "787dd7a7-0a97-482f-b7ed-29f55b8f3d26"
}
response = requests.request("GET", url, data=payload, headers=headers)
print(response.text)
{
"data": []
}