{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Plugins API", "version": "8.1.0" }, "items": [ { "info": { "name": "Plugins", "type": "folder" }, "items": [ { "info": { "name": "List plugins", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/plugins", "params": [ { "name": "pluginType", "value": "", "type": "query" }, { "name": "uninstalled", "value": "", "type": "query" }, { "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 plugins" }, { "info": { "name": "List available plugins", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/plugins/available", "params": [ { "name": "search", "value": "", "type": "query" }, { "name": "pluginType", "value": "", "type": "query" }, { "name": "currentPeerTubeEngine", "value": "", "type": "query" }, { "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 available plugins" }, { "info": { "name": "Install a plugin", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/plugins/install", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Install a plugin" }, { "info": { "name": "Update a plugin", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/plugins/update", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Update a plugin" }, { "info": { "name": "Uninstall a plugin", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/plugins/uninstall", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Uninstall a plugin" }, { "info": { "name": "Get a plugin", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/plugins/:npmName", "params": [ { "name": "npmName", "value": "", "type": "path", "description": "name of the plugin/theme on npmjs.com or in its package.json" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get a plugin" }, { "info": { "name": "Set a plugin's settings", "type": "http" }, "http": { "method": "PUT", "url": "https://peertube2.cpy.re/api/v1/plugins/:npmName/settings", "params": [ { "name": "npmName", "value": "", "type": "path", "description": "name of the plugin/theme on npmjs.com or in its package.json" } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Set a plugin's settings" }, { "info": { "name": "Get a plugin's public settings", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/plugins/:npmName/public-settings", "params": [ { "name": "npmName", "value": "", "type": "path", "description": "name of the plugin/theme on npmjs.com or in its package.json" } ] }, "docs": "Get a plugin's public settings" }, { "info": { "name": "Get a plugin's registered settings", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/plugins/:npmName/registered-settings", "params": [ { "name": "npmName", "value": "", "type": "path", "description": "name of the plugin/theme on npmjs.com or in its package.json" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Get a plugin's registered settings" } ] } ], "bundled": true }