Skip to content

Commit

Permalink
feat: Add rate limit exceeded response to openapi.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahmedhossamdev committed Aug 20, 2024
1 parent 221f079 commit f86965e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ paths:
$ref: '#/components/schemas/CoverageResponse'
required:
- data
'429':
$ref: '#/components/responses/RateLimitExceeded'

/api/where/agency/{agencyID}.json:
get:
Expand Down Expand Up @@ -141,6 +143,9 @@ paths:
required:
- data

'404':
$ref: '#/components/responses/NotFound'

/api/where/routes-for-location.json:
get:
tags:
Expand Down Expand Up @@ -2617,3 +2622,17 @@ components:
currentTime: 1723054063108
text: 'resource not found'
version: 2

RateLimitExceeded:
description: Rate limit exceeded
content:
application/json:
schema:
$ref: '#/components/schemas/ResponseWrapper'
examples:
rateLimitExceeded:
value:
code: 429
currentTime: 1724179666673
text: 'rate limit exceeded'
version: 1

0 comments on commit f86965e

Please sign in to comment.