swagger updated for call records

This commit is contained in:
surajshivakumar
2024-06-10 18:18:22 -04:00
committed by Dave Horton
parent 9bdc859227
commit 1143cab6df

View File

@@ -131,13 +131,13 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/GeneralError' $ref: '#/components/schemas/GeneralError'
/Accounts/{AccountSid}/RecentCalls/{callSid}/record/{year}/{month}/{day}/mp3: /Accounts/{accountSid}/RecentCalls/{callSid}/record/{year}/{month}/{day}/{format}:
get: get:
tags: tags:
- Call Records - Call Records
summary: 'Retrieve an MP3 recording of a recent call' summary: 'Retrieve a recording of a recent call in specified format'
description: 'Gets the MP3 recording of a recent call by specifying the account ID, call ID, and the date of the call.' description: 'Gets the recording of a recent call by specifying the account ID, call ID, the date of the call, and the format of the recording (e.g., MP3 or WAV).'
operationId: getMp3Recording operationId: getRecordingByFormat
security: security:
- ApiKeyAuth: [ ] - ApiKeyAuth: [ ]
parameters: parameters:
@@ -166,11 +166,19 @@ paths:
required: true required: true
schema: schema:
type: string type: string
- name: format
in: path
required: true
schema:
type: string
enum:
- mp3
- wav
responses: responses:
200: 200:
description: Successfully retrieved the MP3 file. description: Successfully retrieved the recording file.
content: content:
audio/mp3: audio/*:
schema: schema:
type: string type: string
format: binary format: binary
@@ -186,6 +194,7 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/GeneralError' $ref: '#/components/schemas/GeneralError'
/Sbcs: /Sbcs:
post: post:
tags: tags: