Chore: Update Swagger API docs (#608)

This commit is contained in:
Pranav Raj S
2020-03-11 16:19:13 +05:30
committed by GitHub
parent a5b1e2b650
commit 260e40831a
23 changed files with 1014 additions and 463 deletions

View File

@@ -1,6 +1,6 @@
get:
tags:
- Conversation
- ConversationLabels
operationId: conversationLabelsList
summary: List Labels
description: Lists all the labels of a conversation
@@ -8,7 +8,7 @@ get:
- name: id
in: path
type: number
description: id of the conversation
description: ID of the conversation
required: true
responses:
200:
@@ -22,7 +22,7 @@ get:
post:
tags:
- Conversation
- ConversationLabels
operationId: conversationAddLabels
summary: Add Labels
description: Creates new labels and associates it with the conversation
@@ -30,7 +30,7 @@ post:
- name: id
in: path
type: number
description: id of the conversation
description: ID of the conversation
required: true
- name: data
in: body
@@ -40,11 +40,11 @@ post:
properties:
labels:
type: array
description: 'array of labels'
description: 'Array of labels'
properties:
type: string
responses:
204:
200:
description: Success
schema:
$ref: '#/definitions/conversation_labels'