mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 14:16:15 +01:00
Merge branch 'api_dev' into dev
This commit is contained in:
commit
d068a5389e
1 changed files with 7 additions and 3 deletions
10
doc/api.yaml
10
doc/api.yaml
|
@ -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"
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue