Fix missing fields in Swagger collection. Closes #1317.

This commit is contained in:
Rohan Shetty 2023-05-10 11:18:40 +05:30 committed by GitHub
parent 5a2627932d
commit cbbbe402be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -40,6 +40,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/ServerConfig"
"/lang/{lang}":
@ -60,6 +63,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/LanguagePack"
/dashboard/charts:
@ -108,6 +114,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/DashboardCount"
/settings:
@ -121,6 +130,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/Settings"
put:
@ -261,6 +273,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/Subscriber"
"/subscribers/{subscriberId}":
@ -282,6 +297,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/Subscriber"
/subscribers/lists:
@ -587,6 +605,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/Bounce"
delete:
@ -679,6 +700,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/List"
"/lists/{list_id}":
@ -700,6 +724,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/List"
put:
description: handles list modification
@ -734,6 +761,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/List"
delete:
description: handles list deletion, either a single one (ID in the URI), or a list.
@ -769,6 +799,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/ImportStatus"
post:
@ -791,6 +824,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/ImportStatus"
delete:
@ -803,6 +839,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/ImportStatus"
/import/subscribers/logs:
@ -879,6 +918,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/NewCampaign"
"/campaigns/{campaign_id}":
@ -900,6 +942,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/Campaign"
put:
@ -918,6 +963,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/CampaignUpdate"
delete:
@ -1041,8 +1089,12 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/Campaign"
"/campaigns/{campaign_id}/content":
post:
description: handles campaign content (body) format conversions.
@ -1131,6 +1183,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/MediaFileObject"
"/media/{media_id}":
@ -1151,6 +1206,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/MediaFileObject"
delete:
@ -1211,6 +1269,9 @@ paths:
content:
application/json:
schema:
type: object
properties:
data:
$ref: "#/components/schemas/Template"
delete:
@ -1359,6 +1420,13 @@ paths:
responses:
"200":
description: response
content:
application/json:
schema:
type: object
properties:
data:
type: integer
"/public/lists":
get: