Fetching a Poll

This is the API definition for fetching a single Poll by its pollId. The app sends a path parameter pollId which is the pollId that is generated by the backend as a unique handle on a particular poll. The response is of the type PollDetails:

 

"/polls/{pollId}": {      "get": {        "tags": [          "Name"        ],        "summary": "Gets a single poll by Id",        "description": "Gets a Poll\n",        "produces": [          "application/json"        ],        "parameters": [          {            "name": "pollId",            "in": "path",            "required": true,            "type": "string"          }        ],        "responses": {          "200": {            "description": "200 response",            "schema": {              "$ref": "#/definitions/PollDetails"            }          },          "404": {            "description": "404 response",            "schema": {              "$ref": "#/definitions/APIErrorResponseWithMessage"            }          },          "409": { "description": ...

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.