Chore: User Friendly URLs on the swagger docs (#590)

Made the swagger documentation urls short and readable.
This commit is contained in:
Sony Mathew
2020-03-04 00:41:21 +05:30
committed by GitHub
parent f76ba889dd
commit fabc6c87af
11 changed files with 56 additions and 17 deletions

View File

@@ -1,5 +1,7 @@
get:
tags: [Contact]
tags:
- Contact
operationId: contactConversations
summary: Conversations
parameters:
- name: id

View File

@@ -1,5 +1,7 @@
get:
tags: [Contact]
tags:
- Contact
operationId: contactDetails
summary: Show Contact
parameters:
- name: id
@@ -18,7 +20,9 @@ get:
description: Access denied
put:
tags: [Contact]
tags:
- Contact
operationId: contactUpdate
summary: Update Contact
parameters:
- name: id

View File

@@ -1,5 +1,7 @@
get:
tags: [Contact]
tags:
- Contact
operationId: contactList
description: Listing all the contacts with pagination
summary: List Contacts
parameters:
@@ -17,7 +19,9 @@ get:
$ref: '#/definitions/bad_request_error'
post:
tags: [Contact]
tags:
- Contact
operationId: contactCreate
description: Create New Contact
parameters:
- name: data

View File

@@ -1,5 +1,7 @@
post:
tags: [Conversation]
tags:
- Conversation
operationId: conversationAssignment
summary: Assign Conversation
description: Assign a conversation to an agent
parameters:

View File

@@ -1,5 +1,7 @@
get:
tags: [Conversation]
tags:
- Conversation
operationId: conversationDetails
summary: Conversation Details
description: Get all details regarding a conversation with all messages in the conversation
parameters:

View File

@@ -1,5 +1,7 @@
get:
tags: [Conversation]
tags:
- Conversation
operationId: conversationLabelsList
summary: List Labels
description: Lists all the labels of a conversation
parameters:
@@ -19,9 +21,11 @@ get:
description: Access denied
post:
tags: [Conversation]
summary: Add Label
description: Creates a new label and associates it with the conversation
tags:
- Conversation
operationId: conversationAddLabels
summary: Add Labels
description: Creates new labels and associates it with the conversation
parameters:
- name: id
in: path

View File

@@ -1,5 +1,7 @@
get:
tags: [Conversation]
tags:
- Conversation
operationId: conversationList
description: List all the conversations with pagination
summary: Conversations List
parameters:

View File

@@ -1,5 +1,7 @@
post:
tags: [Conversation]
tags:
- Conversation
operationId: conversationNewMessage
summary: Create New Message
description: All the agent replies are created as new messages through this endpoint
parameters:

View File

@@ -1,5 +1,7 @@
post:
tags: [Conversation]
tags:
- Conversation
operationId: conversationToggleStatus
summary: Toggle Status
description: Toggles the status of the conversation between open and resolved
parameters:

View File

@@ -1,5 +1,7 @@
post:
tags: [Conversation]
tags:
- Conversation
operationId: conversationUpdateLastSeen
summary: Update Last Seen
description: Updates the last seen of the conversation so that conversations will have the bubbles in the agents screen
parameters: