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 13, 2023
1 parent 25e2261 commit e618332
Showing 1 changed file with 62 additions and 7 deletions.
69 changes: 62 additions & 7 deletions site/specs/ai-bridge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -442,7 +442,7 @@ components:
content:
application/json:
schema:
$ref: '#/components/schemas/replaceProviderResponseData'
$ref: '#/components/schemas/updateProviderResponse'
examples:
googleEsProviderExample:
$ref: '#/components/examples/googleEsProviderPutResponseExample'
Expand All @@ -457,10 +457,7 @@ components:
content:
application/json:
schema:
oneOf:
- $ref: '#/components/schemas/googleEsProviderResponseData'
- $ref: '#/components/schemas/awsProviderResponseData'
- $ref: '#/components/schemas/cognigyProviderResponseData'
$ref: '#/components/schemas/replaceProviderResponse'
examples:
googleEsProviderExample:
$ref: '#/components/examples/googleEsProviderPatchResponseExample'
Expand Down Expand Up @@ -646,6 +643,64 @@ components:
- links
- data
- errors
replaceProviderResponse:
title: Provider Response Payload
type: object
description: Response payload for provider information.
properties:
links:
type: array
items:
$ref: '#/components/schemas/links'
example:
$ref: '#/components/examples/linksExample'
nullable: true
data:
oneOf:
- $ref: '#/components/schemas/googleEsProviderResponseData'
- $ref: '#/components/schemas/googleCxProviderResponseData'
- $ref: '#/components/schemas/awsProviderResponseData'
- $ref: '#/components/schemas/cognigyProviderResponseData'
errors:
type: array
items:
$ref: '#/components/schemas/error'
example:
$ref: '#/components/examples/errorsExample'
nullable: true
required:
- links
- data
- errors
updateProviderResponse:
title: Provider Response Payload
type: object
description: Response payload for provider information.
properties:
links:
type: array
items:
$ref: '#/components/schemas/links'
example:
$ref: '#/components/examples/linksExample'
nullable: true
data:
oneOf:
- $ref: '#/components/schemas/googleEsProviderResponseData'
- $ref: '#/components/schemas/googleCxProviderResponseData'
- $ref: '#/components/schemas/awsProviderResponseData'
- $ref: '#/components/schemas/cognigyProviderResponseData'
errors:
type: array
items:
$ref: '#/components/schemas/error'
example:
$ref: '#/components/examples/errorsExample'
nullable: true
required:
- links
- data
- errors
listProviderResponse:
title: Provider Response Payload
type: object
Expand Down Expand Up @@ -841,7 +896,7 @@ components:
$ref: '#/components/schemas/awsProviderResponse'
nullable: true
example:
$ref: '#/components/examples/awsProviderGetResponseExample'
$ref: '#/components/examples/awsProviderExample'
cognigyProviderResponseData:
title: Cognigy Provider Response Data
type: object
Expand Down Expand Up @@ -2453,7 +2508,7 @@ components:
botUrl: http://cognigy-bot-url
errors: []
cognigyProviderPostResponseExample:
summary: An example of a Cognigy provider
summary: An example of a Cognigy provider reponse
value:
links:
- href: /provider
Expand Down

0 comments on commit e618332

Please sign in to comment.