Skip to content

Commit

Permalink
swagger updated for call records
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshivkumar authored and davehorton committed Jul 15, 2024
1 parent 9bdc859 commit 1143cab
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions lib/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,13 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/GeneralError'
/Accounts/{AccountSid}/RecentCalls/{callSid}/record/{year}/{month}/{day}/mp3:
/Accounts/{accountSid}/RecentCalls/{callSid}/record/{year}/{month}/{day}/{format}:
get:
tags:
- Call Records
summary: 'Retrieve an MP3 recording of a recent call'
description: 'Gets the MP3 recording of a recent call by specifying the account ID, call ID, and the date of the call.'
operationId: getMp3Recording
summary: 'Retrieve a recording of a recent call in specified format'
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: getRecordingByFormat
security:
- ApiKeyAuth: [ ]
parameters:
Expand Down Expand Up @@ -166,11 +166,19 @@ paths:
required: true
schema:
type: string
- name: format
in: path
required: true
schema:
type: string
enum:
- mp3
- wav
responses:
200:
description: Successfully retrieved the MP3 file.
description: Successfully retrieved the recording file.
content:
audio/mp3:
audio/*:
schema:
type: string
format: binary
Expand All @@ -186,6 +194,7 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/GeneralError'

/Sbcs:
post:
tags:
Expand Down

0 comments on commit 1143cab

Please sign in to comment.