FIX: Create invite api docs (#21460)

This fixes the api documentation for the create invite api endpoint so
that it uses the `group_ids` param when specifying the group instead of
the incorrect `group_id` param.
This commit is contained in:
Blake Erickson 2023-05-09 13:20:46 -06:00 committed by GitHub
parent 7a1d60c60e
commit 89f721cf67
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -40,13 +40,17 @@ RSpec.describe "invites" do
topic_id: {
type: :integer,
},
group_id: {
type: :integer,
description: "optional, either this or `group_names`",
group_ids: {
type: :string,
description:
"Optional, either this or `group_names`. Comma separated list for multiple ids.",
example: "42,43",
},
group_names: {
type: :string,
description: "optional, either this or `group_id`",
description:
"Optional, either this or `group_ids`. Comma separated list for multiple names.",
example: "foo,bar",
},
expires_at: {
type: :string,