108 lines
2.5 KiB
YAML
108 lines
2.5 KiB
YAML
get:
|
|
tags:
|
|
- Third-party integrations
|
|
security:
|
|
- ApiKeyAuth: []
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
description: Integration ID
|
|
required: true
|
|
schema:
|
|
type: integer
|
|
summary: Get Facebook integration
|
|
description: Returns Facebook integration details
|
|
responses:
|
|
'200':
|
|
description: Integration details
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
data:
|
|
$ref: ../schemas/Facebook.yaml
|
|
'400':
|
|
$ref: ../responses/BadRequest.yaml
|
|
'401':
|
|
$ref: ../responses/Unauthorized.yaml
|
|
'402':
|
|
$ref: ../responses/PaymentRequired.yaml
|
|
'500':
|
|
$ref: ../responses/InternalError.yaml
|
|
put:
|
|
tags:
|
|
- Third-party integrations
|
|
security:
|
|
- ApiKeyAuth: []
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
description: Integration ID
|
|
required: true
|
|
schema:
|
|
type: integer
|
|
summary: Update Facebook integration
|
|
description: Updates Facebook integration.
|
|
requestBody:
|
|
description: Integration fields to update
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../schemas/FacebookRequest.yaml
|
|
responses:
|
|
'200':
|
|
description: Integration details
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
data:
|
|
$ref: ../schemas/Facebook.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
|
|
delete:
|
|
tags:
|
|
- Third-party integrations
|
|
security:
|
|
- ApiKeyAuth: []
|
|
parameters:
|
|
- name: id
|
|
in: path
|
|
description: Integration ID
|
|
required: true
|
|
schema:
|
|
type: integer
|
|
summary: Delete Facebook integration
|
|
description: Delete Facebook integration
|
|
responses:
|
|
'200':
|
|
description: Successfully deleted
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
success:
|
|
type: boolean
|
|
'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
|