From 42a19cf390bc1b3be1331f9bce79c8372f687a77 Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 9 Nov 2023 13:06:37 +0100 Subject: [bugfix/docs] Poll api fixups + swagger docs (#2345) --- internal/api/client/polls/polls_vote.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'internal/api/client') 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: -- cgit v1.2.3