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" } } }}