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

Commit

Permalink
Merge branch 'main' into in-app-update
Browse files Browse the repository at this point in the history
  • Loading branch information
proy-bw authored Aug 21, 2023
2 parents 5dcae95 + d47eb9d commit f9d0426
Showing 1 changed file with 51 additions and 26 deletions.
77 changes: 51 additions & 26 deletions site/specs/global.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6603,14 +6603,30 @@ components:
items:
$ref: '#/components/schemas/portinEventStatusEnum'
notificationChannel:
description: >
NOTE: When a request without the `Authorization` header is made to a
callback url that supports basic authentication, then the expected
behavior is:
1. Response code is `401` or `407`.
2. Response headers should contain `WWW-Authenticate` or
`Proxy-Authenticate` specifying basic authentication as a scheme.
For example `WWW-Authenticate":"Basic realm="Bandwidth API"`.
type: array
items:
$ref: '#/components/schemas/notificationChannel'
example:
- callback: test-callback
url: https://test-callback.xyz.com/callback
callbackCredentials:
basicAuthentication:
username: myusername
password: mypassword
required:
- product
- notificationChannel
example:
exampleSubscriptionObject: null
product: PORTING
eventType: PORTIN_ORDER_STATUS
entityId: unique_entity_id
Expand All @@ -6621,10 +6637,10 @@ components:
notifyStates:
- ACCEPTED_BY_CARRIER
notificationChannel:
callback: null
url: some-url
callbackCredentials:
- basicAuthentication:
- callback: test-callback
url: some-url
callbackCredentials:
basicAuthentication:
username: username
password: password
modifySubscription:
Expand Down Expand Up @@ -6659,7 +6675,16 @@ components:
items:
$ref: '#/components/schemas/portinEventStatusEnum'
notificationChannel:
$ref: '#/components/schemas/notificationChannel'
type: array
items:
$ref: '#/components/schemas/notificationChannel'
example:
- callback: test-callback
url: https://test-callback.xyz.com/callback
callbackCredentials:
basicAuthentication:
username: myusername
password: mypassword
example:
exampleModifySubscription: null
eventType: PORTIN_ORDER_STATUS
Expand Down Expand Up @@ -6926,10 +6951,10 @@ components:
- DRAFT
- COMPLETED
notificationChannel:
callback: null
url: some-url
callbackCredentials:
- basicAuthentication:
- callback: test-callback
url: some-url
callbackCredentials:
basicAuthentication:
username: username
password: password
errors: null
Expand Down Expand Up @@ -6972,10 +6997,10 @@ components:
- COMPLETED
- DRAFT
notificationChannel:
callback: null
url: some-url
callbackCredentials:
- basicAuthentication:
- callback: test-callback
url: some-url
callbackCredentials:
basicAuthentication:
username: username
password: password
errors: null
Expand Down Expand Up @@ -7152,10 +7177,10 @@ components:
notifyStates:
- DRAFT
notificationChannel:
callback: null
url: some-url
callbackCredentials:
- basicAuthentication:
- callback: test-callback
url: some-url
callbackCredentials:
basicAuthentication:
username: username
password: password
modifySubscription:
Expand All @@ -7178,10 +7203,10 @@ components:
- DRAFT
- COMPLETED
notificationChannel:
callback: null
url: some-url
callbackCredentials:
- basicAuthentication:
- callback: test-callback
url: some-url
callbackCredentials:
basicAuthentication:
username: username
password: password
updateSubscription:
Expand All @@ -7204,10 +7229,10 @@ components:
- DRAFT
- COMPLETED
notificationChannel:
callback: null
url: some-url
callbackCredentials:
- basicAuthentication:
- callback: test-callback
url: some-url
callbackCredentials:
basicAuthentication:
username: username
password: password
parameters:
Expand Down

0 comments on commit f9d0426

Please sign in to comment.