Skip to content

Commit

Permalink
added api get request for call retrieval
Browse files Browse the repository at this point in the history
  • Loading branch information
surajshivkumar committed Jun 6, 2024
1 parent 6041b1d commit 40e3907
Showing 1 changed file with 56 additions and 1 deletion.
57 changes: 56 additions & 1 deletion lib/swagger/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,62 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralError'
$ref: '#/components/schemas/GeneralError'
/Accounts/{AccountSid}/RecentCalls/{callSid}/record/{year}/{month}/{day}/mp3:
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
security:
- ApiKeyAuth: [ ]
parameters:
- name: accountSid
in: path
required: true
schema:
type: string
- name: callSid
in: path
required: true
schema:
type: string
- name: year
in: path
required: true
schema:
type: string
- name: month
in: path
required: true
schema:
type: string
- name: day
in: path
required: true
schema:
type: string
responses:
200:
description: Successfully retrieved the MP3 file.
content:
audio/mp3:
schema:
type: string
format: binary
404:
description: Call record not found
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralError'
500:
description: System error
content:
application/json:
schema:
$ref: '#/components/schemas/GeneralError'
/Sbcs:
post:
tags:
Expand Down

0 comments on commit 40e3907

Please sign in to comment.