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: application/json:
schema: schema:
$ref: '#/components/schemas/ApiResponse' $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: /api/auth/signup:
put: post:
tags: tags:
- backend - backend
summary: Creates a user summary: Creates a user
@ -104,7 +142,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ApiResponse' $ref: '#/components/schemas/UserMetadata'
400: 400:
description: JSON parse error description: JSON parse error
content: content:
@ -136,7 +174,7 @@ paths:
content: content:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ApiResponse' $ref: '#/components/schemas/UserMetadata'
400: 400:
description: JSON parse error description: JSON parse error
content: content:
@ -151,7 +189,7 @@ paths:
$ref: '#/components/schemas/ApiResponse' $ref: '#/components/schemas/ApiResponse'
/api/objects/streamerobject: /api/objects/streamerobject:
put: post:
tags: tags:
- backend - backend
summary: Creates a streamer resource summary: Creates a streamer resource
@ -187,7 +225,7 @@ paths:
delete: delete:
tags: tags:
- backend - backend
summary: Creates a streamer resource summary: Deletes a streamer resource
operationId: deleteResource operationId: deleteResource
parameters: parameters:
- name: id - name: id
@ -213,7 +251,7 @@ paths:
get: get:
tags: tags:
- backend - backend
summary: Creates a streamer resource summary: Gets a streamer resource
operationId: getAResource operationId: getAResource
parameters: parameters:
- name: id - name: id
@ -236,10 +274,10 @@ paths:
application/json: application/json:
schema: schema:
$ref: '#/components/schemas/ApiResponse' $ref: '#/components/schemas/ApiResponse'
post: put:
tags: tags:
- backend - backend
summary: Creates a streamer resource summary: Modifies a streamer resource
operationId: editAResource operationId: editAResource
requestBody: requestBody:
content: content: