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
|
||||
example: '* imagine a Bearer token *'
|
||||
|
||||
/session/username/{username}:
|
||||
/session/username:
|
||||
put:
|
||||
tags: ["login"]
|
||||
summary: Updates the username
|
||||
|
@ -37,13 +37,8 @@ paths:
|
|||
operationId: setMyUsername
|
||||
security:
|
||||
- BearerAuth: []
|
||||
parameters:
|
||||
- name: username
|
||||
in: path
|
||||
schema:
|
||||
$ref: "#/components/schemas/name"
|
||||
required: true
|
||||
description: The username to update
|
||||
requestBody:
|
||||
$ref: "#/components/requestBodies/userDetails"
|
||||
responses:
|
||||
'200':
|
||||
description: Update username action successful
|
||||
|
|
Loading…
Reference in a new issue