{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Video Mirroring API", "version": "8.1.0" }, "items": [ { "info": { "name": "Video Mirroring", "type": "folder" }, "items": [ { "info": { "name": "List videos being mirrored", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/server/redundancy/videos", "params": [ { "name": "target", "value": "", "type": "query", "description": "direction of the mirror" }, { "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 abuses by criteria" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List videos being mirrored" }, { "info": { "name": "Mirror a video", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/server/redundancy/videos", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Mirror a video" }, { "info": { "name": "Delete a mirror done on a video", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/server/redundancy/videos/:redundancyId", "params": [ { "name": "redundancyId", "value": "", "type": "path", "description": "id of an existing redundancy on a video" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Delete a mirror done on a video" } ] } ], "bundled": true }