mirror of
https://github.com/discourse/discourse.git
synced 2025-06-06 23:07:28 +08:00
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:
@ -40,13 +40,17 @@ RSpec.describe "invites" do
|
|||||||
topic_id: {
|
topic_id: {
|
||||||
type: :integer,
|
type: :integer,
|
||||||
},
|
},
|
||||||
group_id: {
|
group_ids: {
|
||||||
type: :integer,
|
type: :string,
|
||||||
description: "optional, either this or `group_names`",
|
description:
|
||||||
|
"Optional, either this or `group_names`. Comma separated list for multiple ids.",
|
||||||
|
example: "42,43",
|
||||||
},
|
},
|
||||||
group_names: {
|
group_names: {
|
||||||
type: :string,
|
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: {
|
expires_at: {
|
||||||
type: :string,
|
type: :string,
|
||||||
|
Reference in New Issue
Block a user