chore: Move agent availability to Account level (#3074)

- Move agent availability to the account level
This commit is contained in:
Sojan Jose
2021-10-07 13:21:46 +05:30
committed by GitHub
parent 1c6a539c0a
commit c54aae21ff
84 changed files with 618 additions and 148 deletions

View File

@@ -0,0 +1,17 @@
tags:
- Integrations
operationId: get-details-of-all-integrations
summary: List all the Integrations
description: Get the details of all Integrations available for the account
responses:
200:
description: Success
schema:
type: array
description: 'Array of Integration apps'
items:
$ref: '#/definitions/integrations_app'
401:
description: Unauthorized
404:
description: Url not found

View File

@@ -0,0 +1,19 @@
tags:
- Integrations
operationId: create-an-integration-hook
summary: Create an integration hook
description: Create an integration hook
parameters:
- $ref: '#/parameters/account_id'
- name: data
in: body
required: true
schema:
$ref: '#/definitions/integrations_hook_create_payload'
responses:
200:
description: Success
schema:
$ref: '#/definitions/integrations_hook'
401:
description: Unauthorized

View File

@@ -0,0 +1,15 @@
tags:
- Integrations
operationId: delete-an-integration-hook
summary: Delete an Integration Hook
description: Delete an Integration Hook
parameters:
- $ref: '#/parameters/account_id'
- $ref: '#/parameters/hook_id'
responses:
200:
description: Success
401:
description: Unauthorized
404:
description: The hook does not exist in the account

View File

@@ -0,0 +1,20 @@
tags:
- Integrations
operationId: update-an-integrations-hook
summary: Update an Integration Hook
description: Update an Integration Hook
parameters:
- $ref: '#/parameters/account_id'
- $ref: '#/parameters/hook_id'
- name: data
in: body
required: true
schema:
$ref: '#/definitions/integrations_hook_update_payload'
responses:
200:
description: Success
schema:
$ref: '#/definitions/integrations_hook'
401:
description: Unauthorized