Skip to content

Commit

Permalink
Fix missing fields in Swagger collection. Closes #1317.
Browse files Browse the repository at this point in the history
  • Loading branch information
rohansh-tty authored May 10, 2023
1 parent 5a26279 commit cbbbe40
Showing 1 changed file with 88 additions and 20 deletions.
108 changes: 88 additions & 20 deletions docs/swagger/collections.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/ServerConfig"
type: object
properties:
data:
$ref: "#/components/schemas/ServerConfig"

"/lang/{lang}":
get:
Expand All @@ -60,7 +63,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/LanguagePack"
type: object
properties:
data:
$ref: "#/components/schemas/LanguagePack"

/dashboard/charts:
get:
Expand Down Expand Up @@ -108,7 +114,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/DashboardCount"
type: object
properties:
data:
$ref: "#/components/schemas/DashboardCount"

/settings:
get:
Expand All @@ -121,7 +130,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Settings"
type: object
properties:
data:
$ref: "#/components/schemas/Settings"

put:
tags:
Expand Down Expand Up @@ -261,7 +273,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Subscriber"
type: object
properties:
data:
$ref: "#/components/schemas/Subscriber"

"/subscribers/{subscriberId}":
get:
Expand All @@ -282,7 +297,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Subscriber"
type: object
properties:
data:
$ref: "#/components/schemas/Subscriber"

/subscribers/lists:
put:
Expand Down Expand Up @@ -587,7 +605,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Bounce"
type: object
properties:
data:
$ref: "#/components/schemas/Bounce"

delete:
description: handles bounce deletion, either a single one (ID in the URI), or a list.
Expand Down Expand Up @@ -679,7 +700,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/List"
type: object
properties:
data:
$ref: "#/components/schemas/List"

"/lists/{list_id}":
get:
Expand All @@ -700,7 +724,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/List"
type: object
properties:
data:
$ref: "#/components/schemas/List"
put:
description: handles list modification
tags:
Expand Down Expand Up @@ -734,7 +761,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/List"
type: object
properties:
data:
$ref: "#/components/schemas/List"
delete:
description: handles list deletion, either a single one (ID in the URI), or a list.
tags:
Expand Down Expand Up @@ -769,7 +799,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/ImportStatus"
type: object
properties:
data:
$ref: "#/components/schemas/ImportStatus"

post:
description: handles the uploading and bulk importing of a ZIP file of one or more CSV files.
Expand All @@ -791,7 +824,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/ImportStatus"
type: object
properties:
data:
$ref: "#/components/schemas/ImportStatus"

delete:
description: sends a stop signal to the importer.
Expand All @@ -803,7 +839,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/ImportStatus"
type: object
properties:
data:
$ref: "#/components/schemas/ImportStatus"

/import/subscribers/logs:
get:
Expand Down Expand Up @@ -879,7 +918,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/NewCampaign"
type: object
properties:
data:
$ref: "#/components/schemas/NewCampaign"

"/campaigns/{campaign_id}":
get:
Expand All @@ -900,7 +942,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Campaign"
type: object
properties:
data:
$ref: "#/components/schemas/Campaign"

put:
tags:
Expand All @@ -918,7 +963,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/CampaignUpdate"
type: object
properties:
data:
$ref: "#/components/schemas/CampaignUpdate"

delete:
description: deletes specified campaign
Expand Down Expand Up @@ -1041,7 +1089,11 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Campaign"
type: object
properties:
data:
$ref: "#/components/schemas/Campaign"


"/campaigns/{campaign_id}/content":
post:
Expand Down Expand Up @@ -1131,7 +1183,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/MediaFileObject"
type: object
properties:
data:
$ref: "#/components/schemas/MediaFileObject"

"/media/{media_id}":
get:
Expand All @@ -1151,7 +1206,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/MediaFileObject"
type: object
properties:
data:
$ref: "#/components/schemas/MediaFileObject"

delete:
description: handles deletion of uploaded media.
Expand Down Expand Up @@ -1211,7 +1269,10 @@ paths:
content:
application/json:
schema:
$ref: "#/components/schemas/Template"
type: object
properties:
data:
$ref: "#/components/schemas/Template"

delete:
description: handles deletion of templates
Expand Down Expand Up @@ -1359,6 +1420,13 @@ paths:
responses:
"200":
description: response
content:
application/json:
schema:
type: object
properties:
data:
type: integer

"/public/lists":
get:
Expand Down

0 comments on commit cbbbe40

Please sign in to comment.