Get all polls
Responds with a paginated response of all the polls
Get all polls
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
{
"status": "success",
"statusCode": 200,
"data": {
"docs": [
{
"data": "null",
"identifier": null,
"question": "Do you like polls?",
"created_at": "2020-11-02T03:20:56.842Z",
"updated_at": "2020-11-02T03:20:56.842Z",
"id": "5f9f7b186477891e5bc646a1",
"entity": "Poll",
"options": [
{
"data": "null",
"text": "Yes",
"votes_count": 0,
"poll_id": "5f9f7b186477891e5bc646a1",
"created_at": "2020-11-02T03:20:56.872Z",
"updated_at": "2020-11-02T03:20:56.872Z",
"id": "5f9f7b186477891e5bc646a2",
"entity": "Option"
},
{
"data": "null",
"text": "No",
"votes_count": 0,
"poll_id": "5f9f7b186477891e5bc646a1",
"created_at": "2020-11-02T03:20:56.872Z",
"updated_at": "2020-11-02T03:20:56.872Z",
"id": "5f9f7b186477891e5bc646a3",
"entity": "Option"
}
]
}
],
"totalDocs": 1,
"offset": 0,
"limit": 10,
"totalPages": 1,
"page": 1,
"pagingCounter": 1,
"hasPrevPage": false,
"hasNextPage": false,
"prevPage": null,
"nextPage": null
}
}
Example cURL Request
Last updated