58 lines
1.4 KiB
YAML
58 lines
1.4 KiB
YAML
get:
|
|
tags:
|
|
- Landing pages
|
|
security:
|
|
- ApiKeyAuth: []
|
|
summary: Get landing pages
|
|
description: Returns list of the landing pages
|
|
responses:
|
|
'200':
|
|
description: List of the landing pages
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: array
|
|
items:
|
|
$ref: ../schemas/Landing.yaml
|
|
'400':
|
|
$ref: ../responses/BadRequest.yaml
|
|
'401':
|
|
$ref: ../responses/Unauthorized.yaml
|
|
'402':
|
|
$ref: ../responses/PaymentRequired.yaml
|
|
'500':
|
|
$ref: ../responses/InternalError.yaml
|
|
post:
|
|
tags:
|
|
- Landing pages
|
|
security:
|
|
- ApiKeyAuth: []
|
|
summary: Create landing page
|
|
description: Creates landing page
|
|
requestBody:
|
|
description: Landing page fields
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
allOf:
|
|
- $ref: ../schemas/LandingRequest.yaml
|
|
- $ref: ../schemas/LandingCreateRequired.yaml
|
|
responses:
|
|
'200':
|
|
description: Landing page details
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../schemas/Landing.yaml
|
|
'400':
|
|
$ref: ../responses/BadRequest.yaml
|
|
'401':
|
|
$ref: ../responses/Unauthorized.yaml
|
|
'402':
|
|
$ref: ../responses/PaymentRequired.yaml
|
|
'406':
|
|
$ref: ../responses/NotAcceptable.yaml
|
|
'500':
|
|
$ref: ../responses/InternalError.yaml
|