mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-29 00:04:30 -05:00
Removed tokens from API spec
With the suggested usage of an Authorization header instead of relying on session-cookies, the API will finally become stateless. Therefore we don't need the tokens for user password change and deletion anymore. Signed-off-by: Erik Michelson <github@erik.michelson.eu>
This commit is contained in:
parent
ab251b429e
commit
fc8f5dbbf5
1 changed files with 0 additions and 15 deletions
|
@ -109,13 +109,6 @@ paths:
|
||||||
- user
|
- user
|
||||||
summary: "Deletes the currently logged-in user from the system and removes all it's notes"
|
summary: "Deletes the currently logged-in user from the system and removes all it's notes"
|
||||||
operationId: deleteMe
|
operationId: deleteMe
|
||||||
parameters:
|
|
||||||
- in: header
|
|
||||||
name: X-Token
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
required: true
|
|
||||||
description: Token to ensure that no accidental account deletions will be performed
|
|
||||||
responses:
|
responses:
|
||||||
'200':
|
'200':
|
||||||
description: The user was deleted successfully
|
description: The user was deleted successfully
|
||||||
|
@ -600,14 +593,6 @@ components:
|
||||||
properties:
|
properties:
|
||||||
password:
|
password:
|
||||||
type: string
|
type: string
|
||||||
token:
|
|
||||||
type: string
|
|
||||||
description: Token to avoid unwanted password change requests
|
|
||||||
UserDeleteToken:
|
|
||||||
type: object
|
|
||||||
properties:
|
|
||||||
token:
|
|
||||||
type: string
|
|
||||||
UserUpdate:
|
UserUpdate:
|
||||||
type: object
|
type: object
|
||||||
properties:
|
properties:
|
||||||
|
|
Loading…
Reference in a new issue