summaryrefslogtreecommitdiff
path: root/internal/api/client/polls
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2023-11-09 13:06:37 +0100
committerLibravatar GitHub <noreply@github.com>2023-11-09 12:06:37 +0000
commit42a19cf390bc1b3be1331f9bce79c8372f687a77 (patch)
treeef4c099e81a06af254be2cc491e34d83050444b8 /internal/api/client/polls
parent[bugfix] actually decrement votes during poll vote delete ... (#2344) (diff)
downloadgotosocial-42a19cf390bc1b3be1331f9bce79c8372f687a77.tar.xz
[bugfix/docs] Poll api fixups + swagger docs (#2345)
Diffstat (limited to 'internal/api/client/polls')
-rw-r--r--internal/api/client/polls/polls_vote.go10
1 files changed, 9 insertions, 1 deletions
diff --git a/internal/api/client/polls/polls_vote.go b/internal/api/client/polls/polls_vote.go
index 8773d0606..824ea08ef 100644
--- a/internal/api/client/polls/polls_vote.go
+++ b/internal/api/client/polls/polls_vote.go
@@ -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: