Skip to content

Commit

Permalink
add the schema for the x-correlator and change the 429 examples
Browse files Browse the repository at this point in the history
add the schema for the x-correlator
change the examples for error response 429 to the latest version
  • Loading branch information
chinaunicomyangfan authored Feb 11, 2025
1 parent a374342 commit 6bc8945
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions code/API_definitions/region-device-count.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,17 @@ components:
description: Correlation id for the different services
schema:
type: string
pattern: ^[a-zA-Z0-9-]{0,55}$
example: "b4333c46-49c0-4f62-80d7-f0ef930f1c46"
parameters:
x-correlator:
name: x-correlator
in: header
description: Correlation id for the different services
schema:
type: string
pattern: ^[a-zA-Z0-9-]{0,55}$
example: "b4333c46-49c0-4f62-80d7-f0ef930f1c46"
schemas:
RegionDeviceCountRequestBody:
type: object
Expand Down Expand Up @@ -653,13 +657,13 @@ components:
value:
status: 429
code: QUOTA_EXCEEDED
message: Either out of resource quota or reaching rate limiting.
message: Out of resource quota.
GENERIC_429_TOO_MANY_REQUESTS:
description: API Server request limit is overpassed
description: Access to the API has been temporarily blocked due to rate or spike arrest limits being reached
value:
status: 429
code: TOO_MANY_REQUESTS
message: Either out of resource quota or reaching rate limiting.
message: Rate limit reached.
examples:
RETRIEVAL_CIRCLE:
value:
Expand Down

0 comments on commit 6bc8945

Please sign in to comment.