docs: add some success response codes to openapi 3.1 (#2251)

This commit is contained in:
Danil Zagoskin 2023-03-06 21:13:18 +03:00 committed by GitHub
parent 1a38b870ae
commit b4f71c6bbc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -805,11 +805,17 @@ paths:
parameters:
- name: username
in: path
description: name that need to be deleted
description: name that need to be updated
required: true
schema:
type: string
responses:
'200':
description: User is updated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/User'
'400':
description: Invalid user supplied
'404':
@ -835,6 +841,8 @@ paths:
schema:
type: string
responses:
'204':
description: User is deleted
'400':
description: Invalid username supplied
'404':