Skip to content

Commit e69406a

Browse files
committed
TASK: Updating RAML types, Postman and OAS definition
1 parent 48cdda0 commit e69406a

File tree

1 file changed

+71
-4
lines changed

1 file changed

+71
-4
lines changed

oas/history/openapi.yaml

Lines changed: 71 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,8 @@ paths:
4444
operationId: ByProjectKeyGet
4545
description: |-
4646
The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
47+
48+
If the request exceeds the rate limit, a [TooManyRequests](ctp:history:type:TooManyRequestsError) error is returned.
4749
parameters:
4850
- name: resourceTypes
4951
in: query
@@ -228,9 +230,17 @@ paths:
228230
schema:
229231
$ref: '#/components/schemas/ErrorResponse'
230232

233+
"429":
234+
description: |-
235+
Too Many Requests. Indicates that the client has exceeded the API rate limit. Reduce the date range and resource types in your query to minimize the token usage, or retry the request after some time (indicated in the `Retry-After` header).
236+
content:
237+
application/json:
238+
schema:
239+
$ref: '#/components/schemas/ErrorResponse'
240+
231241
"500":
232242
description: |-
233-
Internal Server Error. A 500 indicates that a request failed due to a server-side problem that needs to be resolved before subsequent requests can succeed. It either indicates a temporary unavailability or permanent server-side problem that needs to be reported and resolved.
243+
Internal Server Error. A 500 indicates that the request failed due to a server-side problem that needs to be resolved before subsequent requests can succeed. It either indicates a temporary unavailability or permanent server-side problem that needs to be reported and resolved.
234244
content:
235245
application/json:
236246
schema:
@@ -315,6 +325,8 @@ paths:
315325
operationId: ByProjectKeyByResourceTypeGet
316326
description: |-
317327
The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
328+
329+
If the request exceeds the rate limit, a [TooManyRequests](ctp:history:type:TooManyRequestsError) error is returned.
318330
parameters:
319331
- name: date.from
320332
x-annotation-default: 24
@@ -483,9 +495,17 @@ paths:
483495
schema:
484496
$ref: '#/components/schemas/ErrorResponse'
485497

498+
"429":
499+
description: |-
500+
Too Many Requests. Indicates that the client has exceeded the API rate limit. Reduce the date range and resource types in your query to minimize the token usage, or retry the request after some time (indicated in the `Retry-After` header).
501+
content:
502+
application/json:
503+
schema:
504+
$ref: '#/components/schemas/ErrorResponse'
505+
486506
"500":
487507
description: |-
488-
Internal Server Error. A 500 indicates that a request failed due to a server-side problem that needs to be resolved before subsequent requests can succeed. It either indicates a temporary unavailability or permanent server-side problem that needs to be reported and resolved.
508+
Internal Server Error. A 500 indicates that the request failed due to a server-side problem that needs to be resolved before subsequent requests can succeed. It either indicates a temporary unavailability or permanent server-side problem that needs to be reported and resolved.
489509
content:
490510
application/json:
491511
schema:
@@ -545,6 +565,8 @@ paths:
545565
operationId: ByProjectKeyByResourceTypeByIDGet
546566
description: |-
547567
The `view_audit_log:{projectKey}` scope is required, and depending on the [resource type](ctp:history:type:ChangeHistoryResourceType) queried, their respective scopes must be granted.
568+
569+
If the request exceeds the rate limit, a [TooManyRequests](ctp:history:type:TooManyRequestsError) error is returned.
548570
parameters:
549571
- name: date.from
550572
x-annotation-default: 24
@@ -706,9 +728,17 @@ paths:
706728
schema:
707729
$ref: '#/components/schemas/ErrorResponse'
708730

731+
"429":
732+
description: |-
733+
Too Many Requests. Indicates that the client has exceeded the API rate limit. Reduce the date range and resource types in your query to minimize the token usage, or retry the request after some time (indicated in the `Retry-After` header).
734+
content:
735+
application/json:
736+
schema:
737+
$ref: '#/components/schemas/ErrorResponse'
738+
709739
"500":
710740
description: |-
711-
Internal Server Error. A 500 indicates that a request failed due to a server-side problem that needs to be resolved before subsequent requests can succeed. It either indicates a temporary unavailability or permanent server-side problem that needs to be reported and resolved.
741+
Internal Server Error. A 500 indicates that the request failed due to a server-side problem that needs to be resolved before subsequent requests can succeed. It either indicates a temporary unavailability or permanent server-side problem that needs to be reported and resolved.
712742
content:
713743
application/json:
714744
schema:
@@ -970,6 +1000,18 @@ components:
9701000
type: "array"
9711001
items:
9721002
$ref: '#/components/schemas/ErrorObject'
1003+
TooManyRequestsError:
1004+
allOf:
1005+
- $ref: '#/components/schemas/ErrorObject'
1006+
- type: "object"
1007+
required:
1008+
- code
1009+
- message
1010+
properties:
1011+
code:
1012+
type: "string"
1013+
message:
1014+
type: "string"
9731015
ModifiedBy:
9741016
type: "object"
9751017
required:
@@ -1686,7 +1728,7 @@ components:
16861728
items:
16871729
{}
16881730
extensions:
1689-
type: "object"
1731+
$ref: '#/components/schemas/GraphQLErrorObject'
16901732
GraphQLErrorLocation:
16911733
type: "object"
16921734
required:
@@ -1699,12 +1741,37 @@ components:
16991741
column:
17001742
type: "integer"
17011743
format: "int64"
1744+
GraphQLTooManyRequestsError:
1745+
allOf:
1746+
- $ref: '#/components/schemas/GraphQLErrorObject'
1747+
- type: "object"
1748+
required:
1749+
- code
1750+
properties:
1751+
code:
1752+
type: "string"
1753+
additionalProperties:
1754+
type: "string"
17021755
GraphQLVariablesMap:
17031756
type: "object"
17041757
required:
17051758
- //
17061759
additionalProperties:
17071760
type: "string"
1761+
GraphQLErrorObject:
1762+
type: "object"
1763+
discriminator:
1764+
propertyName: code
1765+
mapping:
1766+
TooManyRequests: '#/components/schemas/GraphQLTooManyRequestsError'
1767+
required:
1768+
- //
1769+
- code
1770+
properties:
1771+
code:
1772+
type: "string"
1773+
additionalProperties:
1774+
type: "string"
17081775
AddAddressChange:
17091776
allOf:
17101777
- $ref: '#/components/schemas/Change'

0 commit comments

Comments
 (0)