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:
Erik Michelson 2020-06-02 00:04:24 +02:00 committed by David Mehren
parent ab251b429e
commit fc8f5dbbf5
No known key found for this signature in database
GPG key ID: 185982BA4C42B7C3

View file

@ -109,13 +109,6 @@ paths:
- user
summary: "Deletes the currently logged-in user from the system and removes all it's notes"
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:
'200':
description: The user was deleted successfully
@ -600,14 +593,6 @@ components:
properties:
password:
type: string
token:
type: string
description: Token to avoid unwanted password change requests
UserDeleteToken:
type: object
properties:
token:
type: string
UserUpdate:
type: object
properties: