Commit 9f9b93ab authored by Julien Schröter's avatar Julien Schröter Committed by Frederik Wegner

Add endpoint spec for the endpoint to update firebase-token of session

parent 1454cbc1
......@@ -327,6 +327,27 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/internal-error'
'/session':
patch:
security: []
summary: Update firebase device token on the server.
description: Using this endpoint, the firebase device token can be updated. This token is stored in the session record on the server in order to send push notifications to registered devices. Each successful call will overwrite the token set either during login or calling this endpoint.
requestBody:
description: Updated firebase device token to set.
content:
application/json:
schema:
type: object
required:
- firebase-token
properties:
firebase-token:
description: New firebase device token to send notifications to for the current session.
type: string
responses:
'200':
description: The firebase device token has been successfully updated. Push notifications will be sent to the new token from now on.
'/usernameavailable':
get:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment