Skip to content

Commit

Permalink
api: return 404 when an entity is not found (#2582)
Browse files Browse the repository at this point in the history
  • Loading branch information
aler9 committed Jan 18, 2024
1 parent dd7d7c6 commit dd77cb7
Show file tree
Hide file tree
Showing 10 changed files with 261 additions and 41 deletions.
120 changes: 120 additions & 0 deletions apidocs/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -808,6 +808,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: path not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -876,6 +882,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: path not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -910,6 +922,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: path not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -938,6 +956,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: path not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1008,6 +1032,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: muxer not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1078,6 +1108,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: path not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1148,6 +1184,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: connection not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1218,6 +1260,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: session not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1246,6 +1294,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: session not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1316,6 +1370,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: connection not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1386,6 +1446,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: session not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1414,6 +1480,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: session not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1484,6 +1556,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: connection not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1512,6 +1590,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: connection not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1582,6 +1666,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: connection not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1610,6 +1700,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: connection not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1680,6 +1776,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: connection not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1708,6 +1810,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: connection not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1778,6 +1886,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: session not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down Expand Up @@ -1806,6 +1920,12 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Error'
'404':
description: session not found.
content:
application/json:
schema:
$ref: '#/components/schemas/Error'
'500':
description: server error.
content:
Expand Down
Loading

0 comments on commit dd77cb7

Please sign in to comment.