Skip to content

Commit

Permalink
feat: (minor) update openapi.yaml to include 404 error description
Browse files Browse the repository at this point in the history
  • Loading branch information
andreyxdd committed Jul 2, 2024
1 parent 92571d2 commit 6677937
Showing 1 changed file with 45 additions and 15 deletions.
60 changes: 45 additions & 15 deletions docs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ paths:
schema:
$ref: '#/components/schemas/SuccessPublicUsers'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error
/users/{username}:
Expand Down Expand Up @@ -97,7 +99,9 @@ paths:
schema:
$ref: '#/components/schemas/SuccessPublicUser'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error
/users/{username}/rank:
Expand Down Expand Up @@ -136,7 +140,9 @@ paths:
format: int64
example: 112
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error
/users/{username}/sbts:
Expand All @@ -163,7 +169,9 @@ paths:
schema:
$ref: '#/components/schemas/SuccessSbts'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error
/collections/{id}:
Expand All @@ -190,7 +198,9 @@ paths:
schema:
$ref: '#/components/schemas/SuccessCollection'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error
/collections/{id}/participants:
Expand Down Expand Up @@ -225,7 +235,9 @@ paths:
schema:
$ref: '#/components/schemas/SuccessCollectionParticipants'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error
/last-activities:
Expand Down Expand Up @@ -260,7 +272,9 @@ paths:
schema:
$ref: '#/components/schemas/SuccessLastActivities'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error

Expand Down Expand Up @@ -296,7 +310,9 @@ paths:
schema:
$ref: '#/components/schemas/SuccessHubs'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error

Expand Down Expand Up @@ -364,7 +380,9 @@ paths:
schema:
$ref: '#/components/schemas/SuccessEventCreation'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error
security:
Expand Down Expand Up @@ -441,7 +459,9 @@ paths:
schema:
$ref: '#/components/schemas/EmptySuccess'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error
security:
Expand Down Expand Up @@ -482,7 +502,9 @@ paths:
'200':
description: Successful operation
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error
security:
Expand Down Expand Up @@ -522,7 +544,9 @@ paths:
schema:
$ref: '#/components/schemas/SuccessRewardLink'
'400':
description: activity not found, invalid wallet friendly address
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error

Expand Down Expand Up @@ -558,7 +582,9 @@ paths:
schema:
$ref: '#/components/schemas/CsbtItemByIndex'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error

Expand Down Expand Up @@ -602,7 +628,9 @@ paths:
schema:
$ref: '#/components/schemas/CsbtItems'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error

Expand Down Expand Up @@ -630,7 +658,9 @@ paths:
schema:
$ref: '#/components/schemas/CsbtCollectionState'
'400':
description: Invalid query/path param provided
description: Invalid query/path/body param provided
'404':
description: Resource not found
'500':
description: Internal server error

Expand Down

0 comments on commit 6677937

Please sign in to comment.