-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* docs: rate limiting * fix: duplicated headers section * fix: reword description * fix: apply suggestions from code review to improve readability Co-authored-by: Chris <85164331+noon-dawg@users.noreply.github.com> * fix: apply suggestions from code review to improve readability Co-authored-by: Chris <85164331+noon-dawg@users.noreply.github.com> * refactor: add retry after header, materialize base problem * fix: typo --------- Co-authored-by: Chris <85164331+noon-dawg@users.noreply.github.com>
- Loading branch information
Showing
258 changed files
with
2,321 additions
and
213 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: |- | ||
Total number of rate limit tokens for this request within a rate limit period. | ||
For more information, see [Rate limits](#section/Rate-limits). | ||
schema: | ||
type: integer | ||
example: 3600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
description: |- | ||
Remaining number of rate limit tokens for this request within the rate limit period. | ||
For example, in the sandbox environment, rate limits for non-GET endpoints are set at 3000 requests per 10 minutes. | ||
schema: | ||
type: integer | ||
example: 3600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
description: UTC timestamp after which the rate limit resets and the request can be retried. | ||
schema: | ||
type: integer | ||
example: 1713187500 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
description: Request rate limit exceeded. | ||
headers: | ||
X-RateLimit-Retry-After: | ||
$ref: ../headers/X-RateLimit-Retry-After.yaml | ||
content: | ||
application/json: | ||
schema: | ||
$ref: ../schemas/ProblemTypes/TooManyRequests.yaml |
34 changes: 34 additions & 0 deletions
34
openapi/components/schemas/ProblemTypes/TooManyRequests.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
type: object | ||
additionalProperties: true | ||
minProperties: 1 | ||
description: RFC-7807 [problem details](https://tools.ietf.org/html/rfc7807) JSON object. | ||
properties: | ||
type: | ||
type: string | ||
description: |- | ||
Problem type in the form of a [URI](https://tools.ietf.org/html/rfc3986) reference. | ||
It should provide human-readable documentation for the problem type. | ||
When this member is not present, its value is assumed to be "about:blank". | ||
format: uri | ||
example: about:blank | ||
title: | ||
type: string | ||
description: |- | ||
Short, human-readable summary of the problem type. | ||
Other than for the purposes of localization, this should not change from occurrence to occurrence of the problem. | ||
example: Rate Limit Exceeded | ||
status: | ||
type: integer | ||
description: HTTP status code. | ||
minimum: 429 | ||
maximum: 429 | ||
detail: | ||
type: string | ||
description: Human-readable explanation that is specific to this occurrence of the problem. | ||
example: A request cannot be executed because the user has sent too many requests within a certain period of time | ||
instance: | ||
type: string | ||
description: |- | ||
URI reference that identifies the specific occurrence of the problem. | ||
It may or may not yield further information if dereferenced. | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.