OpenIsle Docs
API 概览
List posts GET Create post POST
Delete post DELETE Get post GET Update post PUT
Poll progress GET
Api
Posts
Id
Poll
Progress

# Poll progress

Get poll progress for a post

GET
/`api`/`posts`/`{id}`/`poll`/`progress`

## Authorization

Authorization Bearer <token>

In: `header`

## Path Parameters

id integer
Format `int64`

## Response Body

###

    curl -X GET "https://www.open-isle.com/api/posts/0/poll/progress"

    {
      "options": [
        "string"
      ],
      "votes": {
        "property1": 0,
        "property2": 0
      },
      "endTime": "2019-08-24T14:15:22Z",
      "participants": [
        {
          "id": 0,
          "username": "string",
          "avatar": "string",
          "displayMedal": "COMMENT"
        }
      ],
      "optionParticipants": {
        "property1": [
          {
            "id": 0,
            "username": "string",
            "avatar": "string",
            "displayMedal": "COMMENT"
          }
        ],
        "property2": [
          {
            "id": 0,
            "username": "string",
            "avatar": "string",
            "displayMedal": "COMMENT"
          }
        ]
      },
      "multiple": true
    }

Join lottery POST

Previous Page

Vote poll POST

Next Page

    curl -X GET "https://www.open-isle.com/api/posts/0/poll/progress"