{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Instance Follows API", "version": "8.1.0" }, "items": [ { "info": { "name": "Instance Follows", "type": "folder" }, "items": [ { "info": { "name": "List instances following the server", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/server/followers", "params": [ { "name": "state", "value": "", "type": "query" }, { "name": "actorType", "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" } ] }, "docs": "List instances following the server" }, { "info": { "name": "Remove or reject a follower to your server", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/server/followers/:handle", "params": [ { "name": "handle", "value": "", "type": "path", "description": "The remote actor handle to remove from your followers" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Remove or reject a follower to your server" }, { "info": { "name": "Reject a pending follower to your server", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/server/followers/:handle/reject", "params": [ { "name": "handle", "value": "", "type": "path", "description": "The remote actor handle to remove from your followers" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Reject a pending follower to your server" }, { "info": { "name": "Accept a pending follower to your server", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/server/followers/:handle/accept", "params": [ { "name": "handle", "value": "", "type": "path", "description": "The remote actor handle to remove from your followers" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Accept a pending follower to your server" }, { "info": { "name": "List instances followed by the server", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/server/following", "params": [ { "name": "state", "value": "", "type": "query" }, { "name": "actorType", "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" } ] }, "docs": "List instances followed by the server" }, { "info": { "name": "Follow a list of actors (PeerTube instance, channel or account)", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/server/following", "body": { "type": "json", "data": "{}" }, "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Follow a list of actors (PeerTube instance, channel or account)" }, { "info": { "name": "Unfollow an actor (PeerTube instance, channel or account)", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/server/following/:hostOrHandle", "params": [ { "name": "hostOrHandle", "value": "", "type": "path", "description": "The hostOrHandle to unfollow" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Unfollow an actor (PeerTube instance, channel or account)" } ] } ], "bundled": true }