chore(docs): Updated API Reference (v2) (#8609)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
4bd0917aed
commit
b23ddcdde8
@@ -73,6 +73,41 @@ get:
|
||||
tags:
|
||||
- Campaigns
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
allOf:
|
||||
- type: object
|
||||
description: SUMMARY
|
||||
required:
|
||||
- limit
|
||||
- offset
|
||||
- count
|
||||
properties:
|
||||
limit:
|
||||
type: number
|
||||
title: limit
|
||||
description: The campaign's limit.
|
||||
offset:
|
||||
type: number
|
||||
title: offset
|
||||
description: The campaign's offset.
|
||||
count:
|
||||
type: number
|
||||
title: count
|
||||
description: The campaign's count.
|
||||
- type: object
|
||||
description: SUMMARY
|
||||
required:
|
||||
- campaigns
|
||||
properties:
|
||||
campaigns:
|
||||
type: array
|
||||
description: The campaign's campaigns.
|
||||
items:
|
||||
$ref: ../components/schemas/CampaignResponse.yaml
|
||||
'400':
|
||||
$ref: ../components/responses/400_error.yaml
|
||||
'401':
|
||||
@@ -154,15 +189,7 @@ post:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
description: SUMMARY
|
||||
required:
|
||||
- name
|
||||
- campaign_identifier
|
||||
- description
|
||||
- budget
|
||||
- starts_at
|
||||
- ends_at
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
@@ -228,6 +255,12 @@ post:
|
||||
tags:
|
||||
- Campaigns
|
||||
responses:
|
||||
'200':
|
||||
description: OK
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: ../components/schemas/AdminCampaignResponse.yaml
|
||||
'400':
|
||||
$ref: ../components/responses/400_error.yaml
|
||||
'401':
|
||||
|
||||
Reference in New Issue
Block a user