Merge branch 'api_dev' into dev

This commit is contained in:
Marco Realacci 2022-11-26 15:00:47 +01:00
commit d068a5389e

View file

@ -37,7 +37,7 @@ paths:
requestBody: requestBody:
$ref: "#/components/requestBodies/userDetails" $ref: "#/components/requestBodies/userDetails"
responses: responses:
'200': #is 201 in the original one '201':
description: User log-in action successful. description: User log-in action successful.
content: content:
application/json: application/json:
@ -51,7 +51,7 @@ paths:
tags: ["username"] tags: ["username"]
summary: Updates the username summary: Updates the username
description: Changes the username of the user with the given one. description: Changes the username of the user with the given one.
operationId: setMyUsername operationId: setMyUserName
parameters: parameters:
- name: user_id - name: user_id
in: path in: path
@ -107,6 +107,7 @@ paths:
type: array type: array
description: The list of followers. description: The list of followers.
minItems: 0 minItems: 0
maxItems: 100
items: items:
$ref: "#/components/schemas/uid_name" $ref: "#/components/schemas/uid_name"
example: example:
@ -944,7 +945,9 @@ components:
upload_time: upload_time:
type: string type: string
format: date-time format: date-time
description: Upload time and date. description: Upload time and date in RFC3339 format.
minLength: 25
maxLength: 25
likes: likes:
type: integer type: integer
example: 90 example: 90
@ -1073,6 +1076,7 @@ components:
properties: properties:
status: status:
type: string type: string
pattern: ".*"
description: The status of the request. description: The status of the request.
example: "Success" example: "Success"