doc: Swagger for custom attribute APIs (#4382)

This commit is contained in:
Muhsin Keloth
2022-04-07 19:01:31 +05:30
committed by GitHub
parent d4a046a21e
commit dfb56f6bb8
11 changed files with 453 additions and 3 deletions

View File

@@ -170,6 +170,24 @@
delete:
$ref: ./application/canned_responses/delete.yml
# Custom Attributes
/api/v1/accounts/{account_id}/custom_attribute_definitions:
parameters:
- $ref: '#/parameters/account_id'
get:
$ref: ./application/custom_attributes/index.yml
post:
$ref: ./application/custom_attributes/create.yml
/api/v1/accounts/{account_id}/custom_attribute_definitions/{id}:
parameters:
- $ref: '#/parameters/account_id'
get:
$ref: './application/custom_attributes/show.yml'
patch:
$ref: ./application/custom_attributes/update.yml
delete:
$ref: ./application/custom_attributes/delete.yml
# Contacts
/api/v1/accounts/{account_id}/contacts:
$ref: ./application/contacts/list_create.yml