Skip to content

Commit

Permalink
Changes for Mixed Audio Recordings Release (Azure#15618)
Browse files Browse the repository at this point in the history
* Adding the existing folders to a new version

* Updating swagger file and readme

* Addressed PR comments

* Nit changes

Co-authored-by: Ninika Sharma <ninsharm@microsoft.com>
  • Loading branch information
ninikasharma and ninsharm authored Aug 16, 2021
1 parent e68d33c commit 3893616
Show file tree
Hide file tree
Showing 17 changed files with 2,380 additions and 1 deletion.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
{
"parameters": {
"endpoint": "https://contoso.communications.azure.com",
"api-version": "2021-06-15-preview",
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
"addParticipantRequest": {
"participant": {
"communicationUser": {
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_387c0153-3b4d-4779-9ee3-a6e2440df075"
}
},
"operationContext": "5161f20a-7225-4a74-a529-efaf8e7b351d",
"callbackUri": "https://app.contoso.com/callback"
}
},
"responses": {
"202": {
"body": {
"participantId": "c736e607-5b39-42a7-a6bb-bb43029e5bac"
}
},
"400": {
"body": {
"error": {
"code": "400",
"message": "The request contains invalid data."
}
}
},
"401": {
"body": {
"error": {
"code": "401",
"message": "Request is not authorized."
}
}
},
"403": {
"body": {
"error": {
"code": "403",
"message": "User is not allowed to perform specified action."
}
}
},
"404": {
"body": {
"error": {
"code": "404",
"message": "Resource not found on the server."
}
}
},
"500": {
"body": {
"error": {
"code": "500",
"message": "Internal server error."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
{
"parameters": {
"endpoint": "https://contoso.communications.azure.com",
"api-version": "2021-06-15-preview",
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
"cancelAllMediaOperationRequest": {
"operationContext": "91848e99-0d36-4bca-ac06-6c38fe390289"
}
},
"responses": {
"200": {
"body": {
"status": "completed",
"operationContext": "91848e99-0d36-4bca-ac06-6c38fe390289"
}
},
"400": {
"body": {
"error": {
"code": "400",
"message": "The request contains invalid data."
}
}
},
"401": {
"body": {
"error": {
"code": "401",
"message": "Request is not authorized."
}
}
},
"403": {
"body": {
"error": {
"code": "403",
"message": "User is not allowed to perform specified action."
}
}
},
"404": {
"body": {
"error": {
"code": "404",
"message": "Resource not found on the server."
}
}
},
"500": {
"body": {
"error": {
"code": "500",
"message": "Internal server error."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
{
"parameters": {
"endpoint": "https://contoso.communications.azure.com",
"api-version": "2021-06-15-preview",
"callRequest": {
"source": {
"communicationUser": {
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_da7be3a9-8788-42a6-85c6-56b2cf784fce"
}
},
"targets": [
{
"communicationUser": {
"id": "8:acs:b9614373-fd0b-480c-8fd2-cb58b70eab9f_0f50d091-5bd3-448b-884d-44be7037d9b9"
}
},
{
"phoneNumber": {
"value": "+14250123456"
}
}
],
"alternateCallerId": {
"value": "+18440123456"
},
"subject": "Reminder call",
"callbackUri": "https://app.contoso.com/callback",
"requestedMediaTypes": [
"audio",
"video"
],
"requestedCallEvents": [
"dtmfReceived",
"participantsUpdated"
]
}
},
"responses": {
"201": {
"body": {
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c"
}
},
"400": {
"body": {
"error": {
"code": "400",
"message": "The request contains invalid data."
}
}
},
"401": {
"body": {
"error": {
"code": "401",
"message": "Request is not authorized."
}
}
},
"403": {
"body": {
"error": {
"code": "403",
"message": "User is not allowed to perform specified action."
}
}
},
"500": {
"body": {
"error": {
"code": "500",
"message": "Internal server error."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"parameters": {
"endpoint": "https://contoso.communications.azure.com",
"api-version": "2021-06-15-preview",
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c"
},
"responses": {
"202": {},
"400": {
"body": {
"error": {
"code": "400",
"message": "The request contains invalid data."
}
}
},
"401": {
"body": {
"error": {
"code": "401",
"message": "Request is not authorized."
}
}
},
"403": {
"body": {
"error": {
"code": "403",
"message": "User is not allowed to perform specified action."
}
}
},
"404": {
"body": {
"error": {
"code": "404",
"message": "Resource not found on the server."
}
}
},
"500": {
"body": {
"error": {
"code": "500",
"message": "Internal server error."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
{
"parameters": {
"endpoint": "https://contoso.communications.azure.com",
"api-version": "2021-06-15-preview",
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
"request": {
"audioFileUri": "https://app.contoso.com/audio/message.wav",
"loop": false,
"operationContext": "31130c66-2f86-41b5-af61-23850243e093",
"audioFileId": "42922e2c-a204-4ac4-8d80-375ae2792389"
}
},
"responses": {
"202": {
"body": {
"status": "running",
"operationContext": "31130c66-2f86-41b5-af61-23850243e093"
}
},
"400": {
"body": {
"error": {
"code": "400",
"message": "The request contains invalid data."
}
}
},
"401": {
"body": {
"error": {
"code": "401",
"message": "Request is not authorized."
}
}
},
"403": {
"body": {
"error": {
"code": "403",
"message": "User is not allowed to perform specified action."
}
}
},
"404": {
"body": {
"error": {
"code": "404",
"message": "Resource not found on the server."
}
}
},
"500": {
"body": {
"error": {
"code": "500",
"message": "Internal server error."
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"parameters": {
"endpoint": "https://contoso.communications.azure.com",
"api-version": "2021-06-15-preview",
"callConnectionId": "18dea47f-b081-4107-9a5c-4300819d2c6c",
"participantId": "d8b26c04-7186-41e2-971a-bdfa9a662a53"
},
"responses": {
"202": {},
"400": {
"body": {
"error": {
"code": "400",
"message": "The request contains invalid data."
}
}
},
"401": {
"body": {
"error": {
"code": "401",
"message": "Request is not authorized."
}
}
},
"403": {
"body": {
"error": {
"code": "403",
"message": "User is not allowed to perform specified action."
}
}
},
"404": {
"body": {
"error": {
"code": "404",
"message": "Resource not found on the server."
}
}
},
"500": {
"body": {
"error": {
"code": "500",
"message": "Internal server error."
}
}
}
}
}
Loading

0 comments on commit 3893616

Please sign in to comment.