docs: document push token and firebase notification setup
This commit is contained in:
@@ -1106,6 +1106,36 @@ Response: `200` + `ChatAttachmentRead[]`
|
||||
Auth required.
|
||||
Response: `200` + `NotificationRead[]`
|
||||
|
||||
### POST `/api/v1/notifications/push-token`
|
||||
|
||||
Auth required.
|
||||
Body: `PushTokenUpsertRequest`
|
||||
|
||||
```json
|
||||
{
|
||||
"platform": "android",
|
||||
"token": "fcm_registration_token",
|
||||
"device_id": "optional_device_id",
|
||||
"app_version": "0.1.0"
|
||||
}
|
||||
```
|
||||
|
||||
Response: `204`
|
||||
|
||||
### DELETE `/api/v1/notifications/push-token`
|
||||
|
||||
Auth required.
|
||||
Body: `PushTokenDeleteRequest`
|
||||
|
||||
```json
|
||||
{
|
||||
"platform": "web",
|
||||
"token": "fcm_registration_token"
|
||||
}
|
||||
```
|
||||
|
||||
Response: `204`
|
||||
|
||||
## 11. Realtime WebSocket
|
||||
|
||||
### Endpoint
|
||||
|
||||
Reference in New Issue
Block a user