{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses My Notifications API", "version": "8.1.0" }, "items": [ { "info": { "name": "My Notifications", "type": "folder" }, "items": [ { "info": { "name": "List my notifications", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/users/me/notifications", "params": [ { "name": "typeOneOf", "value": "", "type": "query", "description": "only list notifications of these types" }, { "name": "unread", "value": "", "type": "query", "description": "only list unread notifications" }, { "name": "start", "value": "", "type": "query", "description": "Offset used to paginate results" }, { "name": "count", "value": "", "type": "query", "description": "Number of items to return" }, { "name": "sort", "value": "", "type": "query", "description": "Sort column" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List my notifications" }, { "info": { "name": "Mark notifications as read by their id", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/me/notifications/read", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Mark notifications as read by their id" }, { "info": { "name": "Mark all my notification as read", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/users/me/notifications/read-all", "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Mark all my notification as read" }, { "info": { "name": "Update my notification settings", "type": "http" }, "http": { "method": "PUT", "url": "https://peertube2.cpy.re/api/v1/users/me/notification-settings", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Update my notification settings" } ] } ], "bundled": true }