Skip to content

Commit

Permalink
api: Update API status codes
Browse files Browse the repository at this point in the history
Signed-off-by: Evgenii Baidakov <evgenii@nspcc.io>
  • Loading branch information
smallhive committed Oct 23, 2024
1 parent 9771aa1 commit 15ab197
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 40 deletions.
81 changes: 41 additions & 40 deletions handlers/apiserver/rest-server.gen.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

72 changes: 72 additions & 0 deletions spec/rest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -491,6 +491,30 @@ paths:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"403":
description: Access denied
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"404":
description: Not found.
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"502":
description: Bad gateway.
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"504":
description: Gateway timeout
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codegen-request-body-name: container
options:
operationId: optionsContainersPutList
Expand Down Expand Up @@ -558,6 +582,30 @@ paths:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"403":
description: Access denied
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"404":
description: Not found.
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"502":
description: Bad gateway.
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"504":
description: Gateway timeout
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
options:
operationId: optionsContainersGetDelete
parameters:
Expand Down Expand Up @@ -633,6 +681,30 @@ paths:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"403":
description: Access denied
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"404":
description: Not found.
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"502":
description: Bad gateway.
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
"504":
description: Gateway timeout
content:
'*/*':
schema:
$ref: '#/components/schemas/ErrorResponse'
x-codegen-request-body-name: eacl
options:
operationId: optionsContainersEACL
Expand Down

0 comments on commit 15ab197

Please sign in to comment.