@@ -144,9 +144,9 @@ pub async fn fetch_campaign_ids_for_channel(
144
144
145
145
/// POST `/v5/campaign`
146
146
///
147
- /// Expected request body: [`CreateCampaign`](`primitives::sentry::campaign_create::CreateCampaign`)
147
+ /// Request body (json) : [`CreateCampaign`](`primitives::sentry::campaign_create::CreateCampaign`)
148
148
///
149
- /// Expected response : [Campaign](`primitives::Campaign`)
149
+ /// Response : [Campaign](`primitives::Campaign`)
150
150
pub async fn create_campaign < C > (
151
151
req : Request < Body > ,
152
152
app : & Application < C > ,
@@ -374,10 +374,10 @@ pub mod update_campaign {
374
374
375
375
/// POST `/v5/campaign/:id` (auth required)
376
376
///
377
- /// Request body is [`ModifyCampaign`](`primitives::sentry::campaign_modify::ModifyCampaign`)
378
- /// which consists of all the editable fields of the [`Campaign`]
377
+ /// Request body (json): [`ModifyCampaign`](`primitives::sentry::campaign_modify::ModifyCampaign`)
378
+ /// consists of all of the editable fields of the [`Campaign`]
379
379
///
380
- /// Returns the updated [`Campaign`] serialized
380
+ /// Response [`Campaign`](`primitives::Campaign`)
381
381
///
382
382
/// Ensures that the remaining funds for all campaigns <= total remaining funds (total deposited - total spent)
383
383
///
@@ -642,9 +642,15 @@ pub mod insert_events {
642
642
643
643
/// POST `/v5/campaign/:id/events`
644
644
///
645
- /// The expected request body is `Vec<[Event](primitives::Event)>`
645
+ /// Request body (json):
646
646
///
647
- /// The expected Response is [`SuccessResponse`](primitives::sentry::SuccessResponse)
647
+ /// ```json
648
+ /// {
649
+ /// "events": [[`Event`](`primitives::Event`)]
650
+ /// }
651
+ /// ```
652
+ ///
653
+ /// Response: [`SuccessResponse`](primitives::sentry::SuccessResponse)
648
654
pub async fn handle_route < C : Locked + ' static > (
649
655
req : Request < Body > ,
650
656
app : & Application < C > ,
0 commit comments