Skip to content

Commit

Permalink
Fix API documentation for Campaign deliver/schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
wmnnd committed Jan 5, 2023
1 parent 896134c commit 788846a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/keila_web/api/controllers/api_campaign_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,10 @@ defmodule KeilaWeb.ApiCampaignController do
end

operation(:deliver,
summary: "Delete Campaign",
summary: "Deliver Campaign",
parameters: [id: [in: :path, type: :string, description: "Campaign ID"]],
responses: %{
204 => "Campaign was deleted successfully or didn’t exist."
ok: {"Campaign response", "application/json", Schemas.MailingsCampaign.Response}
}
)

Expand All @@ -129,12 +129,12 @@ defmodule KeilaWeb.ApiCampaignController do
end

operation(:schedule,
summary: "Delete Campaign",
summary: "Schedule Campaign",
parameters: [id: [in: :path, type: :string, description: "Campaign ID"]],
request_body:
{"Campaign params", "application/json", Schemas.MailingsCampaign.ScheduleParams},
responses: %{
204 => "Campaign was deleted successfully or didn’t exist."
ok: {"Campaign response", "application/json", Schemas.MailingsCampaign.Response}
}
)

Expand Down

0 comments on commit 788846a

Please sign in to comment.