fix minor bugs

This commit is contained in:
Torma Kristóf 2020-11-24 18:14:04 +01:00
parent 17ebcfd1cf
commit 85d1fb4b5c

View File

@ -85,9 +85,47 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
put:
tags:
- backend
summary: Modifies a user
operationId: modifyUser
parameters:
- name: username
in: path
description: Username of a user
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/User'
required: true
responses:
200:
description: successful operation
content:
application/json:
schema:
$ref: '#/components/schemas/UserMetadata'
400:
description: JSON parse error
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
417:
description: JSON invalid schema
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
/api/auth/signup:
put:
post:
tags:
- backend
summary: Creates a user
@ -104,7 +142,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
$ref: '#/components/schemas/UserMetadata'
400:
description: JSON parse error
content:
@ -136,7 +174,7 @@ paths:
content:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
$ref: '#/components/schemas/UserMetadata'
400:
description: JSON parse error
content:
@ -151,7 +189,7 @@ paths:
$ref: '#/components/schemas/ApiResponse'
/api/objects/streamerobject:
put:
post:
tags:
- backend
summary: Creates a streamer resource
@ -187,7 +225,7 @@ paths:
delete:
tags:
- backend
summary: Creates a streamer resource
summary: Deletes a streamer resource
operationId: deleteResource
parameters:
- name: id
@ -213,7 +251,7 @@ paths:
get:
tags:
- backend
summary: Creates a streamer resource
summary: Gets a streamer resource
operationId: getAResource
parameters:
- name: id
@ -236,10 +274,10 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ApiResponse'
post:
put:
tags:
- backend
summary: Creates a streamer resource
summary: Modifies a streamer resource
operationId: editAResource
requestBody:
content: