From e8aec5a337f81bff50c5577d2cba6973683302dd Mon Sep 17 00:00:00 2001 From: Paresh Arvind Patil Date: Thu, 27 May 2021 16:45:32 -0700 Subject: [PATCH 1/2] Updated the servercalling swagger with playAudio --- .../communicationservicescallingserver.json | 70 +++++++++++++++++++ 1 file changed, 70 insertions(+) diff --git a/specification/communication/data-plane/CallingServer/preview/2021-04-15-preview1/communicationservicescallingserver.json b/specification/communication/data-plane/CallingServer/preview/2021-04-15-preview1/communicationservicescallingserver.json index a39b6dc7ef59..20547c7c93c2 100644 --- a/specification/communication/data-plane/CallingServer/preview/2021-04-15-preview1/communicationservicescallingserver.json +++ b/specification/communication/data-plane/CallingServer/preview/2021-04-15-preview1/communicationservicescallingserver.json @@ -380,6 +380,72 @@ } } }, + "/calling/conversations/{conversationId}/PlayAudio": { + "post": { + "tags": [ + "Call" + ], + "summary": "Play audio in a call.", + "description": "Play audio in a call.", + "operationId": "Conversation_PlayAudio", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "parameters": [ + { + "name": "conversationId", + "in": "path", + "description": "The conversation id which can be guid or encoded cs url", + "required": true, + "type": "string" + }, + { + "name": "request", + "in": "body", + "description": "Play audio request.", + "required": true, + "schema": { + "$ref": "#/definitions/PlayAudioRequest" + } + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "202": { + "description": "Returns the play audio response.", + "schema": { + "$ref": "#/definitions/PlayAudioResponse" + } + }, + "401": { + "description": "Unauthorized", + "schema": { + "$ref": "#/definitions/CommunicationError" + }, + "x-ms-error-response": true + }, + "400": { + "description": "Bad request", + "schema": { + "$ref": "#/definitions/CommunicationError" + }, + "x-ms-error-response": true + }, + "500": { + "description": "Internal server error.", + "schema": { + "$ref": "#/definitions/CommunicationError" + }, + "x-ms-error-response": true + } + } + } + }, "/calling/conversations/{conversationId}/participants": { "post": { "tags": [ @@ -1034,6 +1100,10 @@ "audioFileId": { "description": "An id for the media in the AudioFileUri, using which we cache the media resource.", "type": "string" + }, + "callbackUri": { + "description": "The callback Uri to recieve PlayAudio status notifications.", + "type": "string" } } }, From a8e55047582890f5b38480616eb4d555febb7d9a Mon Sep 17 00:00:00 2001 From: Paresh Arvind Patil Date: Thu, 27 May 2021 17:30:21 -0700 Subject: [PATCH 2/2] Fixed a typo --- .../2021-04-15-preview1/communicationservicescallingserver.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/communication/data-plane/CallingServer/preview/2021-04-15-preview1/communicationservicescallingserver.json b/specification/communication/data-plane/CallingServer/preview/2021-04-15-preview1/communicationservicescallingserver.json index 20547c7c93c2..4ea37dcb785c 100644 --- a/specification/communication/data-plane/CallingServer/preview/2021-04-15-preview1/communicationservicescallingserver.json +++ b/specification/communication/data-plane/CallingServer/preview/2021-04-15-preview1/communicationservicescallingserver.json @@ -1102,7 +1102,7 @@ "type": "string" }, "callbackUri": { - "description": "The callback Uri to recieve PlayAudio status notifications.", + "description": "The callback Uri to receive PlayAudio status notifications.", "type": "string" } }