You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: platform-api/src/resources/openapi.yaml
+38-8Lines changed: 38 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -6328,7 +6328,7 @@ components:
6328
6328
$ref: "#/components/schemas/Upstream"
6329
6329
upstreamDefinitions:
6330
6330
type: array
6331
-
description: List of reusable named upstream definitions. API-level upstream `ref` values resolve against entries here by name.
6331
+
description: List of reusable named upstream definitions. Both API-level and operation-level upstream `ref` values resolve against entries here by name.
6332
6332
items:
6333
6333
$ref: '#/components/schemas/ReusableUpstream'
6334
6334
lifeCycleStatus:
@@ -6478,6 +6478,8 @@ components:
6478
6478
description: List of policies to be applied on the operation
6479
6479
items:
6480
6480
$ref: "#/components/schemas/Policy"
6481
+
upstream:
6482
+
$ref: "#/components/schemas/OperationUpstream"
6481
6483
6482
6484
ChannelRequest:
6483
6485
title: Channel Request
@@ -8389,6 +8391,39 @@ components:
8389
8391
auth:
8390
8392
$ref: '#/components/schemas/UpstreamAuth'
8391
8393
8394
+
OperationUpstream:
8395
+
title: Operation Upstream
8396
+
type: object
8397
+
additionalProperties: false
8398
+
minProperties: 1
8399
+
description: Per-operation upstream override. Each sub-field must reference a named entry in upstreamDefinitions. Missing sub-fields fall back to the API-level upstream. At least one of main or sandbox must be set.
8400
+
properties:
8401
+
main:
8402
+
type: object
8403
+
additionalProperties: false
8404
+
required:
8405
+
- ref
8406
+
properties:
8407
+
ref:
8408
+
$ref: '#/components/schemas/UpstreamReference'
8409
+
sandbox:
8410
+
type: object
8411
+
additionalProperties: false
8412
+
required:
8413
+
- ref
8414
+
properties:
8415
+
ref:
8416
+
$ref: '#/components/schemas/UpstreamReference'
8417
+
8418
+
UpstreamReference:
8419
+
title: Upstream Reference
8420
+
type: string
8421
+
description: Name of a ReusableUpstream entry in the API's upstreamDefinitions pool. Used by both API-level and operation-level upstream refs.
8422
+
minLength: 1
8423
+
maxLength: 100
8424
+
pattern: '^[a-zA-Z0-9\-_]+$'
8425
+
example: my-upstream-1
8426
+
8392
8427
UpstreamAuth:
8393
8428
type: object
8394
8429
description: Authentication configuration for upstream endpoints
@@ -8415,15 +8450,10 @@ components:
8415
8450
required:
8416
8451
- name
8417
8452
- upstreams
8418
-
description: A reusable named upstream definition. Referenced by name from an API-level upstream.ref.
8453
+
description: A reusable named upstream definition. Referenced by name from API-level and operation-level upstream refs.
8419
8454
properties:
8420
8455
name:
8421
-
type: string
8422
-
description: Unique identifier for this upstream definition
8423
-
minLength: 1
8424
-
maxLength: 100
8425
-
pattern: '^[a-zA-Z0-9\-_]+$'
8426
-
example: my-upstream-1
8456
+
$ref: '#/components/schemas/UpstreamReference'
8427
8457
basePath:
8428
8458
type: string
8429
8459
description: Base path prefix prepended to all requests routed to this upstream (e.g., /api/v2)
0 commit comments