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

Commit

Permalink
Add Code Snippets to Spec Files
Browse files Browse the repository at this point in the history
  • Loading branch information
DX-Bandwidth committed Oct 12, 2023
1 parent bfdf593 commit 5bdc0dc
Showing 1 changed file with 32 additions and 10 deletions.
42 changes: 32 additions & 10 deletions site/specs/ai-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,10 @@ info:
termsOfService: https://www.bandwidth.com/legal/terms-of-use-bandwidthcom-web-sites/
version: 1.0.0
servers:
- url: TODO
description: Production
- url: https://eng.dashboard.bandwidth.com/portal/report/aibridge
description: Development and test server.
- url: https://dashboard.bandwidth.com/portal/report/aibridge
description: Production server.
paths:
/accounts/{accountId}/aibridge/providers:
get:
Expand Down Expand Up @@ -544,7 +546,7 @@ components:
links:
type: array
items:
$ref: '#/components/schemas/link'
$ref: '#/components/schemas/links'
nullable: true
data:
oneOf:
Expand All @@ -569,7 +571,7 @@ components:
links:
type: array
items:
$ref: '#/components/schemas/link'
$ref: '#/components/schemas/links'
nullable: true
data:
$ref: '#/components/schemas/botResponseData'
Expand All @@ -590,7 +592,7 @@ components:
links:
type: array
items:
$ref: '#/components/schemas/link'
$ref: '#/components/schemas/links'
nullable: true
data:
oneOf:
Expand All @@ -615,7 +617,7 @@ components:
links:
type: array
items:
$ref: '#/components/schemas/link'
$ref: '#/components/schemas/links'
nullable: true
data:
$ref: '#/components/schemas/botResponseData'
Expand All @@ -636,7 +638,7 @@ components:
links:
type: array
items:
$ref: '#/components/schemas/link'
$ref: '#/components/schemas/links'
nullable: true
data:
properties:
Expand Down Expand Up @@ -668,7 +670,7 @@ components:
links:
type: array
items:
$ref: '#/components/schemas/link'
$ref: '#/components/schemas/links'
nullable: true
data:
properties:
Expand Down Expand Up @@ -1678,8 +1680,8 @@ components:
message:
type: string
example: An optional metadata field
link:
title: Link
links:
title: Links
type: object
properties:
href:
Expand All @@ -1694,6 +1696,8 @@ components:
type: string
description: HTTP method to be used.
example: GET
example:
$ref: '#/components/examples/linksExample'
requestBodies:
providerPostRequest:
content:
Expand Down Expand Up @@ -2578,6 +2582,24 @@ components:
Unexpected internal server error. Contact Bandwidth Customer
Support if this problem persists.
errorCode: 500
linksExample:
summary: An example of a links object in the aibridge reponse
value:
- href: /providers/b64b5e72-a850-4f38-98d4-5022cacd3f0f
rel: self
method: GET
- href: /providers
rel: create
method: POST
- href: /providers/b64b5e72-a850-4f38-98d4-5022cacd3f0f
rel: replace
method: PUT
- href: /providers/b64b5e72-a850-4f38-98d4-5022cacd3f0f
rel: update
method: PATCH
- href: /providers/b64b5e72-a850-4f38-98d4-5022cacd3f0f
rel: delete
method: DELETE
securitySchemes:
Basic:
type: http
Expand Down

0 comments on commit 5bdc0dc

Please sign in to comment.