Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
DX-2779 (#693)
Browse files Browse the repository at this point in the history
* Add Code Snippets to Spec Files

* Add Code Snippets to Spec Files

* Add Code Snippets to Spec Files

* Add Code Snippets to Spec Files
  • Loading branch information
DX-Bandwidth authored Sep 2, 2022
1 parent df1404c commit e899047
Show file tree
Hide file tree
Showing 2 changed files with 115 additions and 38 deletions.
7 changes: 4 additions & 3 deletions site/specs/messaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1466,7 +1466,7 @@ components:
description: >-
The start of the date range to search in ISO 8601 format. Uses the
message receive time. The date range to search in is currently 14 days.
example: 2016-09-14T18:20:16.000Z
example: 2022-09-14T18:20:16.000Z
schema:
type: string
toDateTime:
Expand All @@ -1476,7 +1476,7 @@ components:
description: >-
The end of the date range to search in ISO 8601 format. Uses the message
receive time. The date range to search in is currently 14 days.
example: 2016-09-14T18:20:16.000Z
example: 2022-09-14T18:20:16.000Z
schema:
type: string
sort:
Expand Down Expand Up @@ -1616,6 +1616,7 @@ components:
example: 2020-04-07T14:03:07.000Z
carrierName:
type: string
nullable: true
description: >-
The name of the carrier. Not currently supported for MMS coming
soon.
Expand Down Expand Up @@ -1737,7 +1738,7 @@ components:
time:
type: string
description: The datetime stamp of the message in ISO 8601
example: 2016-09-14T18:20:16.000Z
example: 2022-09-14T18:20:16.000Z
segmentCount:
type: integer
description: >-
Expand Down
146 changes: 111 additions & 35 deletions site/specs/voice.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5009,18 +5009,6 @@ components:
complete
and will include its result.
username:
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
password:
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
createCall:
type: object
required:
Expand Down Expand Up @@ -5089,9 +5077,17 @@ components:
answerMethod:
$ref: '#/components/schemas/callbackMethodEnum'
username:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
password:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
answerFallbackUrl:
nullable: true
type: string
Expand All @@ -5109,9 +5105,17 @@ components:
answerFallbackMethod:
$ref: '#/components/schemas/callbackMethodEnum'
fallbackUsername:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
fallbackPassword:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
disconnectUrl:
nullable: true
type: string
Expand Down Expand Up @@ -5284,13 +5288,29 @@ components:
example: https://myServer.com/bandwidth/webhooks/disconnect
description: URL to deliver the `disconnect` event webhook.
username:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
password:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
fallbackUsername:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
fallbackPassword:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
priority:
nullable: true
type: number
Expand Down Expand Up @@ -5508,9 +5528,17 @@ components:
redirectMethod:
$ref: '#/components/schemas/redirectMethodEnum'
username:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
password:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
redirectFallbackUrl:
nullable: true
type: string
Expand All @@ -5522,9 +5550,17 @@ components:
redirectFallbackMethod:
$ref: '#/components/schemas/redirectMethodEnum'
fallbackUsername:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
fallbackPassword:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
tag:
nullable: true
type: string
Expand Down Expand Up @@ -5673,9 +5709,17 @@ components:
redirectMethod:
$ref: '#/components/schemas/redirectMethodEnum'
username:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
password:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
redirectFallbackUrl:
nullable: true
type: string
Expand All @@ -5691,9 +5735,17 @@ components:
redirectFallbackMethod:
$ref: '#/components/schemas/redirectMethodEnum'
fallbackUsername:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
fallbackPassword:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
conferenceMember:
type: object
properties:
Expand Down Expand Up @@ -5926,9 +5978,17 @@ components:
callbackMethod:
$ref: '#/components/schemas/callbackMethodEnum'
username:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
password:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
fallbackUrl:
nullable: true
type: string
Expand All @@ -5946,9 +6006,17 @@ components:
fallbackMethod:
$ref: '#/components/schemas/callbackMethodEnum'
fallbackUsername:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
fallbackPassword:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
transcribeRecording:
type: object
properties:
Expand All @@ -5970,9 +6038,17 @@ components:
callbackMethod:
$ref: '#/components/schemas/callbackMethodEnum'
username:
$ref: '#/components/schemas/username'
type: string
nullable: true
description: Basic auth username.
maxLength: 1024
example: mySecretUsername
password:
$ref: '#/components/schemas/password'
type: string
nullable: true
description: Basic auth password.
maxLength: 1024
example: mySecretPassword1!
tag:
$ref: '#/components/schemas/tag'
callbackTimeout:
Expand Down Expand Up @@ -7068,7 +7144,7 @@ components:
originatingId:
type: string
description: (optional) A unique origination identifier.
example: null
example: 99759086-1335-11ed-9bcf-5f7d464e91af
parameters:
accountId:
name: accountId
Expand Down

0 comments on commit e899047

Please sign in to comment.