Added remaining endpoints to the Swagger Collection (#1283)
* added swagger collection for APIs * added remaining endpoints to the swagger collection
This commit is contained in:
parent
39a627d839
commit
e332622db9
1 changed files with 256 additions and 1 deletions
|
@ -123,6 +123,46 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/Settings"
|
||||
|
||||
put:
|
||||
tags:
|
||||
- Settings
|
||||
description: update settings
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Settings"
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
data:
|
||||
type: boolean
|
||||
|
||||
/settings/smtp/test:
|
||||
post:
|
||||
tags:
|
||||
- Settings
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/SMTPTest"
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
data:
|
||||
type: boolean
|
||||
|
||||
/admin/reload:
|
||||
post:
|
||||
tags:
|
||||
|
@ -531,7 +571,7 @@ paths:
|
|||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/SubscriberData"
|
||||
$ref: "#/components/schemas/Bounce"
|
||||
|
||||
delete:
|
||||
description: handles bounce deletion, either a single one (ID in the URI), or a list.
|
||||
|
@ -838,6 +878,25 @@ paths:
|
|||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/Campaign"
|
||||
|
||||
put:
|
||||
tags:
|
||||
- Campaigns
|
||||
parameters:
|
||||
- in: path
|
||||
name: campaign_id
|
||||
required: true
|
||||
description: the id value of campaign you want to update
|
||||
schema:
|
||||
type: number
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CampaignUpdate"
|
||||
|
||||
delete:
|
||||
description: deletes specified campaign
|
||||
tags:
|
||||
|
@ -896,6 +955,33 @@ paths:
|
|||
description: The id value of the campaign you want to get the preview of
|
||||
schema:
|
||||
type: number
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
content:
|
||||
text/html:
|
||||
schema:
|
||||
type: string
|
||||
example: <h3>Hi John!</h3>This is a e-mail campaign. Your second name is Doe and you are from Bengaluru
|
||||
|
||||
"/campaigns/{campaign_id}/text":
|
||||
get:
|
||||
description: renders the HTML preview of a campaign body
|
||||
tags:
|
||||
- Campaigns
|
||||
parameters:
|
||||
- in: path
|
||||
name: id
|
||||
required: True
|
||||
description: The id value of the campaign you want to get the preview of
|
||||
schema:
|
||||
type: number
|
||||
- in: path
|
||||
name: template_id
|
||||
required: True
|
||||
description: The id of the template you want to get the preview of
|
||||
schema:
|
||||
type: number
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
|
@ -934,6 +1020,62 @@ paths:
|
|||
schema:
|
||||
$ref: "#/components/schemas/Campaign"
|
||||
|
||||
|
||||
"/campaigns/{campaign_id}/content":
|
||||
post:
|
||||
description: handles campaign content (body) format conversions.
|
||||
tags:
|
||||
- Campaigns
|
||||
parameters:
|
||||
- in: path
|
||||
name: campaign_id
|
||||
required: true
|
||||
schema:
|
||||
type: number
|
||||
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
data:
|
||||
type: string
|
||||
|
||||
"/campaigns/{campaign_id}/test":
|
||||
post:
|
||||
description: handles sending of campaign message to arbitrary subscribers for testing
|
||||
tags:
|
||||
- Campaigns
|
||||
parameters:
|
||||
- in: path
|
||||
name: campaign_id
|
||||
required: true
|
||||
schema:
|
||||
type: number
|
||||
- in: path
|
||||
name: template_id
|
||||
required: true
|
||||
schema:
|
||||
type: number
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: "#/components/schemas/CampaignRegistrationInfo"
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
data:
|
||||
type: boolean
|
||||
|
||||
"/media":
|
||||
get:
|
||||
description: handles retrieval of uploaded media.
|
||||
|
@ -1173,6 +1315,13 @@ paths:
|
|||
responses:
|
||||
"200":
|
||||
description: response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
data:
|
||||
type: boolean
|
||||
|
||||
"/maintenance/subscriptions/unconfirmed":
|
||||
delete:
|
||||
|
@ -1209,6 +1358,28 @@ paths:
|
|||
name:
|
||||
type: string
|
||||
|
||||
"/public/subscription":
|
||||
post:
|
||||
description: handles subscription requests coming from public API calls.
|
||||
tags:
|
||||
- Public
|
||||
responses:
|
||||
"200":
|
||||
description: response
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
list_uuids:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
|
||||
components:
|
||||
schemas:
|
||||
LanguagePack:
|
||||
|
@ -2420,6 +2591,46 @@ components:
|
|||
tls_skip_verify:
|
||||
type: boolean
|
||||
|
||||
SMTPTest:
|
||||
type: object
|
||||
properties:
|
||||
uuid:
|
||||
type: string
|
||||
enabled:
|
||||
type: boolean
|
||||
host:
|
||||
type: string
|
||||
hello_hostname:
|
||||
type: string
|
||||
port:
|
||||
type: number
|
||||
auth_protocol:
|
||||
type: string
|
||||
username:
|
||||
type: string
|
||||
email_headers:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
max_conns:
|
||||
type: number
|
||||
max_msg_retries:
|
||||
type: number
|
||||
idle_timeout:
|
||||
type: string
|
||||
wait_timeout:
|
||||
type: string
|
||||
tls_type:
|
||||
type: string
|
||||
tls_skip_verify:
|
||||
type: boolean
|
||||
strEmailHeaders:
|
||||
type: string
|
||||
password:
|
||||
type: string
|
||||
email:
|
||||
type: string
|
||||
|
||||
MailBoxBounces:
|
||||
type: object
|
||||
properties:
|
||||
|
@ -2963,6 +3174,50 @@ components:
|
|||
items:
|
||||
type: string
|
||||
|
||||
CampaignUpdate:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
type: string
|
||||
subject:
|
||||
type: string
|
||||
lists:
|
||||
type: array
|
||||
items:
|
||||
type: number
|
||||
from_email:
|
||||
type: string
|
||||
messenger:
|
||||
type: string
|
||||
type:
|
||||
type: string
|
||||
tags:
|
||||
type: array
|
||||
items:
|
||||
type: string
|
||||
send_later:
|
||||
type: boolean
|
||||
send_at:
|
||||
type: object
|
||||
headers:
|
||||
type: array
|
||||
items:
|
||||
type: object
|
||||
template_id:
|
||||
type: number
|
||||
content_type:
|
||||
type: string
|
||||
body:
|
||||
type: string
|
||||
altbody:
|
||||
type: string
|
||||
archive:
|
||||
type: boolean
|
||||
archive_template_id:
|
||||
type: number
|
||||
archive_meta:
|
||||
type: object
|
||||
|
||||
MediaFileObject:
|
||||
type: object
|
||||
properties:
|
||||
|
|
Loading…
Reference in a new issue