mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix/docs] Poll api fixups + swagger docs (#2345)
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user