Responding to a Poll

This is the API to respond to the poll. The app sends a object of type PollResponseRequest as the request body and receives a generic success message response on successful response registration. The following code block shows the fragment from the swagger documentation:

"/response": {      "post": {        "tags": [          "Name"        ],        "summary": "Responds to the poll",        "description": "Records the response for a poll\n",        "consumes": [          "application/json"        ],        "produces": [          "application/json"        ],        "parameters": [          {            "in": "body",            "name": "PollResponseRequest",            "description": "Request body description",            "required": true,            "schema": {              "$ref": "#/definitions/PollResponseRequest"            }          }        ],        "responses": {          "200": {            "description": "200 response", "schema": ...

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.