Add description to polls methods (#1474)
This commit is contained in:
parent
c7d87cda76
commit
0552a6f71c
1 changed files with 5 additions and 1 deletions
|
@ -26,6 +26,8 @@ aliases: [
|
|||
GET /api/v1/polls/:id HTTP/1.1
|
||||
```
|
||||
|
||||
View a poll attached to a status.
|
||||
|
||||
**Returns:** [Poll]({{< relref "entities/poll" >}})\
|
||||
**OAuth:** Public if parent status is public. User token + `read:statuses` if parent status is private.\
|
||||
**Version history:**\
|
||||
|
@ -90,6 +92,8 @@ Poll does not exist, or poll's parent status is private
|
|||
POST /api/v1/polls/:id/votes HTTP/1.1
|
||||
```
|
||||
|
||||
Vote on a poll attached to a status.
|
||||
|
||||
**Returns:** [Poll]({{< relref "entities/poll" >}})\
|
||||
**OAuth:** User token + `write:statuses`\
|
||||
**Version history:**\
|
||||
|
@ -225,4 +229,4 @@ Alternatively, you have already voted
|
|||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/polls_controller.rb" caption="app/controllers/api/v1/polls_controller.rb" >}}
|
||||
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/polls/votes_controller.rb" caption="app/controllers/api/v1/polls/votes_controller.rb" >}}
|
||||
{{< caption-link url="https://github.com/mastodon/mastodon/blob/main/app/controllers/api/v1/polls/votes_controller.rb" caption="app/controllers/api/v1/polls/votes_controller.rb" >}}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue