forked from chatwoot/chatwoot
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Help center api doc (chatwoot#7189)
- Loading branch information
1 parent
2c85098
commit 776ea6d
Showing
16 changed files
with
849 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
swagger/definitions/request/portal/article_create_update_payload.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
type: object | ||
properties: | ||
content: | ||
type: string | ||
description: The text content. | ||
meta: | ||
type: object | ||
description: Use for search | ||
example: { tags: ['article_name'], title: 'article title', description: 'article description' } | ||
position: | ||
type: integer | ||
description: article position in category | ||
status: | ||
type: integer | ||
example: ['draft', 'published', 'archived'] | ||
title: | ||
type: string | ||
slug: | ||
type: string | ||
views: | ||
type: integer | ||
portal_id: | ||
type: integer | ||
account_id: | ||
type: integer | ||
author_id: | ||
type: integer | ||
category_id: | ||
type: integer | ||
folder_id: | ||
type: integer | ||
associated_article_id: | ||
type: integer | ||
description: To associate similar articles to each other, e.g to provide the link for the reference. |
28 changes: 28 additions & 0 deletions
28
swagger/definitions/request/portal/category_create_update_payload.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
type: object | ||
properties: | ||
description: | ||
type: string | ||
description: Category description | ||
locale: | ||
type: string | ||
description: Category locale | ||
example: en/es | ||
name: | ||
type: string | ||
description: Category name | ||
slug: | ||
type: string | ||
description: Category slug | ||
position: | ||
type: integer | ||
description: Category position in the portal list to sort | ||
portal_id: | ||
type: integer | ||
account_id: | ||
type: integer | ||
associated_category_id: | ||
type: integer | ||
description: To associate similar categories to each other, e.g same category of product documentation in different languages | ||
parent_category_id: | ||
type: integer | ||
description: To define parent category, e.g product documentation has multiple level features in sales category or in engineering category. |
36 changes: 36 additions & 0 deletions
36
swagger/definitions/request/portal/portal_create_update_payload.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
type: object | ||
properties: | ||
archived: | ||
type: boolean | ||
description: Status to check if portal is live | ||
color: | ||
type: string | ||
description: Header color for help-center | ||
example: add color HEX string, "#fffff" | ||
config: | ||
type: object | ||
description: Configuration about supporting locales | ||
example: { allowed_locales: ['en', 'es'], default_locale: 'en' } | ||
custom_domain: | ||
type: string | ||
description: Custom domain to display help center. | ||
example: https://chatwoot.help/. | ||
header_text: | ||
type: string | ||
description: Help center header | ||
example: Handbook | ||
homepage_link: | ||
type: string | ||
description: link to main dashboard | ||
example: https://www.chatwoot.com/ | ||
name: | ||
type: string | ||
description: Name for the portal | ||
slug: | ||
type: string | ||
description: Slug for the portal to display in link | ||
page_title: | ||
type: string | ||
description: Page title for the portal | ||
account_id: | ||
type: integer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
content: | ||
type: string | ||
description: The text content. | ||
meta: | ||
type: object | ||
position: | ||
type: integer | ||
status: | ||
type: integer | ||
enum: ['draft', 'published', 'archived'] | ||
title: | ||
type: string | ||
slug: | ||
type: string | ||
views: | ||
type: integer | ||
portal_id: | ||
type: integer | ||
account_id: | ||
type: integer | ||
author_id: | ||
type: integer | ||
category_id: | ||
type: integer | ||
folder_id: | ||
type: integer | ||
associated_article_id: | ||
type: integer | ||
description: To associate similar articles to each other, e.g to provide the link for the reference. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
description: | ||
type: string | ||
description: The text content. | ||
locale: | ||
type: string | ||
name: | ||
type: string | ||
slug: | ||
type: string | ||
position: | ||
type: integer | ||
portal_id: | ||
type: integer | ||
account_id: | ||
type: integer | ||
associated_category_id: | ||
type: integer | ||
description: To associate similar categories to each other, e.g same category of product documentation in different languages | ||
parent_category_id: | ||
type: integer | ||
description: To define parent category, e.g product documentation has multiple level features in sales category or in engineering category. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
type: object | ||
properties: | ||
id: | ||
type: integer | ||
archived: | ||
type: boolean | ||
color: | ||
type: string | ||
config: | ||
type: object | ||
description: Save information about locales, allowed_locales and default portal/help-center locale | ||
custom_domain: | ||
type: string | ||
header_text: | ||
type: string | ||
description: The text content. | ||
homepage_link: | ||
type: string | ||
name: | ||
type: string | ||
slug: | ||
type: string | ||
page_title: | ||
type: string | ||
account_id: | ||
type: integer | ||
categories: | ||
type: array | ||
items: | ||
$ref: '#/definitions/category' | ||
articles: | ||
type: array | ||
items: | ||
$ref: '#/definitions/article' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,6 +69,7 @@ x-tagGroups: | |
- Teams | ||
- Webhooks | ||
- Automation Rule | ||
- Help Center | ||
- name: Client | ||
tags: | ||
- Contacts API | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
in: path | ||
name: portal_id | ||
type: integer | ||
required: true | ||
description: The numeric ID of the portal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
tags: | ||
- Help Center | ||
operationId: add-new-article-to-account | ||
summary: Add a new article | ||
description: Add a new article to portal | ||
security: | ||
- userApiKey: [] | ||
parameters: | ||
- name: data | ||
in: body | ||
required: true | ||
schema: | ||
$ref: '#/definitions/article_create_update_payload' | ||
responses: | ||
'200': | ||
description: Success | ||
schema: | ||
$ref: '#/definitions/article' | ||
'403': | ||
description: Access denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
tags: | ||
- Help Center | ||
operationId: add-new-category-to-account | ||
summary: Add a new category | ||
description: Add a new category to portal | ||
security: | ||
- userApiKey: [] | ||
parameters: | ||
- name: data | ||
in: body | ||
required: true | ||
schema: | ||
$ref: '#/definitions/category_create_update_payload' | ||
responses: | ||
'200': | ||
description: Success | ||
schema: | ||
$ref: '#/definitions/category' | ||
'403': | ||
description: Access denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
tags: | ||
- Help Center | ||
operationId: add-new-portal-to-account | ||
summary: Add a new portal | ||
description: Add a new portal to account | ||
security: | ||
- userApiKey: [] | ||
parameters: | ||
- name: data | ||
in: body | ||
required: true | ||
schema: | ||
$ref: '#/definitions/portal_create_update_payload' | ||
responses: | ||
'200': | ||
description: Success | ||
schema: | ||
$ref: '#/definitions/portal' | ||
'403': | ||
description: Access denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
tags: | ||
- Help Center | ||
operationId: get-portal | ||
summary: List all portals in an account | ||
parameters: | ||
- $ref: '#/parameters/account_id' | ||
description: Get details of portals in an Account | ||
security: | ||
- userApiKey: [] | ||
responses: | ||
'200': | ||
description: Success | ||
schema: | ||
type: array | ||
description: Array of all portals | ||
items: | ||
$ref: '#/definitions/portal' | ||
'403': | ||
description: Access denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
tags: | ||
- Help Center | ||
operationId: update-new-portal-to-account | ||
summary: update a new portal | ||
description: update a new portal to account | ||
security: | ||
- userApiKey: [] | ||
parameters: | ||
- name: data | ||
in: body | ||
required: true | ||
schema: | ||
$ref: '#/definitions/portal_create_update_payload' | ||
responses: | ||
'200': | ||
description: Success | ||
schema: | ||
$ref: '#/definitions/portal' | ||
'403': | ||
description: Access denied |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.