mirror of
https://github.com/notherealmarco/WASAPhoto.git
synced 2025-03-14 06:06:15 +01:00
setMyUsername: username moved from path to body
This commit is contained in:
parent
e63cace47a
commit
c694deedd5
1 changed files with 3 additions and 8 deletions
11
api/api.yaml
11
api/api.yaml
|
@ -29,7 +29,7 @@ paths:
|
||||||
type: string
|
type: string
|
||||||
example: '* imagine a Bearer token *'
|
example: '* imagine a Bearer token *'
|
||||||
|
|
||||||
/session/username/{username}:
|
/session/username:
|
||||||
put:
|
put:
|
||||||
tags: ["login"]
|
tags: ["login"]
|
||||||
summary: Updates the username
|
summary: Updates the username
|
||||||
|
@ -37,13 +37,8 @@ paths:
|
||||||
operationId: setMyUsername
|
operationId: setMyUsername
|
||||||
security:
|
security:
|
||||||
- BearerAuth: []
|
- BearerAuth: []
|
||||||
parameters:
|
requestBody:
|
||||||
- name: username
|
$ref: "#/components/requestBodies/userDetails"
|
||||||
in: path
|
|
||||||
schema:
|
|
||||||
$ref: "#/components/schemas/name"
|
|
||||||
required: true
|
|
||||||
description: The username to update
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: Update username action successful
|
description: Update username action successful
|
||||||
|
|
Loading…
Reference in a new issue