mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 16:52:25 -05:00
[bugfix/docs] Poll api fixups + swagger docs (#2345)
This commit is contained in:
parent
b1c65ed9ac
commit
42a19cf390
5 changed files with 93 additions and 14 deletions
|
|
@ -27,7 +27,7 @@ import (
|
|||
"github.com/superseriousbusiness/gotosocial/internal/oauth"
|
||||
)
|
||||
|
||||
// PollVotePOSTHandler swagger:operation POST /api/v1/polls/{id}/vote poll
|
||||
// PollVotePOSTHandler swagger:operation POST /api/v1/polls/{id}/vote pollVote
|
||||
//
|
||||
// Vote with choices in the given poll.
|
||||
//
|
||||
|
|
@ -45,6 +45,14 @@ import (
|
|||
// description: Target poll ID.
|
||||
// in: path
|
||||
// required: true
|
||||
// -
|
||||
// name: choices
|
||||
// type: array
|
||||
// items:
|
||||
// type: integer
|
||||
// description: Poll choice indices on which to vote.
|
||||
// in: formData
|
||||
// required: true
|
||||
//
|
||||
// security:
|
||||
// - OAuth2 Bearer:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue