{ "opencollection": "1.0.0", "info": { "name": "PeerTube Abuses Runner Registration Token API", "version": "8.1.0" }, "items": [ { "info": { "name": "Runner Registration Token", "type": "folder" }, "items": [ { "info": { "name": "Generate registration token", "type": "http" }, "http": { "method": "POST", "url": "https://peertube2.cpy.re/api/v1/runners/registration-tokens/generate", "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Generate a new runner registration token" }, { "info": { "name": "Remove registration token", "type": "http" }, "http": { "method": "DELETE", "url": "https://peertube2.cpy.re/api/v1/runners/registration-tokens/:registrationTokenId", "params": [ { "name": "registrationTokenId", "value": "", "type": "path" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "Remove a registration token. Runners that used this token for their registration are automatically removed." }, { "info": { "name": "List registration tokens", "type": "http" }, "http": { "method": "GET", "url": "https://peertube2.cpy.re/api/v1/runners/registration-tokens", "params": [ { "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 registration tokens by criteria" } ], "auth": { "type": "oauth2", "flow": "resource_owner_password_credentials", "accessTokenUrl": "/api/v1/users/token", "credentials": { "clientId": "{{clientId}}", "clientSecret": "{{clientSecret}}" } } }, "docs": "List registration tokens" } ] } ], "bundled": true }