Fetching all Polls

This is an API to fetch all Polls from the database. The app receives an object of type Polls as a response. The following code block shows the fragment from the swagger documentation:

"/polls": { "get": { "tags": [ "Tag1" ], "summary": "Gets all Polls", "description": "Gets a List of All polls\n", "produces": [ "application/json" ], "responses": { "200": { "description": "200 response", "schema": { "$ref": "#/definitions/Polls" } }, "404": { "description": "404 response", "schema": { "$ref": "#/definitions/APIErrorResponseWithMessage" } } }}

Get Hands-On Serverless Applications with Kotlin now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.