1
0
Fork 0

remove outdated badges, add authorization to caption routes

This commit is contained in:
Rigel Kent 2020-11-20 11:29:33 +01:00
parent de94ac86a2
commit 64b5c2476a
No known key found for this signature in database
GPG key ID: 5E53E96A494E452F
3 changed files with 27 additions and 36 deletions
README.md
server/tools
support/doc/api

View file

@ -43,10 +43,6 @@ Be part of a network of multiple small federated, interoperable video hosting pr
<br /> <br />
<a href="https://david-dm.org/Chocobozzz/PeerTube?path=client&type=dev">
<img src="https://david-dm.org/Chocobozzz/PeerTube/dev-status.svg?path=client" alt="devDependency Status" />
</a>
<a href="https://automate.browserstack.com/public-build/T2g0SVQyMTJtYVRWaEZQTE9LdU9UU1ZDSkY5dTJ6dGlNRUVIajd4QlIwST0tLVdTQ1NUZ0pUTzRZT3lyZzkvWGNSZ1E9PQ==--278d3c68ae0827ce57e245e9f5a3b8c35d6e2278%"> <a href="https://automate.browserstack.com/public-build/T2g0SVQyMTJtYVRWaEZQTE9LdU9UU1ZDSkY5dTJ6dGlNRUVIajd4QlIwST0tLVdTQ1NUZ0pUTzRZT3lyZzkvWGNSZ1E9PQ==--278d3c68ae0827ce57e245e9f5a3b8c35d6e2278%">
<img src="https://automate.browserstack.com/badge.svg?badge_key=T2g0SVQyMTJtYVRWaEZQTE9LdU9UU1ZDSkY5dTJ6dGlNRUVIajd4QlIwST0tLVdTQ1NUZ0pUTzRZT3lyZzkvWGNSZ1E9PQ==--278d3c68ae0827ce57e245e9f5a3b8c35d6e2278%"/> <img src="https://automate.browserstack.com/badge.svg?badge_key=T2g0SVQyMTJtYVRWaEZQTE9LdU9UU1ZDSkY5dTJ6dGlNRUVIajd4QlIwST0tLVdTQ1NUZ0pUTzRZT3lyZzkvWGNSZ1E9PQ==--278d3c68ae0827ce57e245e9f5a3b8c35d6e2278%"/>
</a> </a>
@ -65,14 +61,6 @@ Be part of a network of multiple small federated, interoperable video hosting pr
<img alt="test suite status" src="https://github.com/Chocobozzz/PeerTube/workflows/Test%20Suite/badge.svg" /> <img alt="test suite status" src="https://github.com/Chocobozzz/PeerTube/workflows/Test%20Suite/badge.svg" />
</a> </a>
<a href="https://david-dm.org/Chocobozzz/PeerTube">
<img src="https://david-dm.org/Chocobozzz/PeerTube.svg" alt="Dependencies Status" />
</a>
<a href="https://david-dm.org/Chocobozzz/PeerTube?type=dev">
<img src="https://david-dm.org/Chocobozzz/PeerTube/dev-status.svg" alt="devDependency Status" />
</a>
<a href="http://standardjs.com/"> <a href="http://standardjs.com/">
<img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg" alt="JavaScript Style Guide" /> <img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg" alt="JavaScript Style Guide" />
</a> </a>

View file

@ -8,8 +8,5 @@
"netrc-parser": "^3.1.6", "netrc-parser": "^3.1.6",
"webtorrent-hybrid": "^4.0.1" "webtorrent-hybrid": "^4.0.1"
}, },
"summon": {
"silent": true
},
"devDependencies": {} "devDependencies": {}
} }

View file

@ -306,7 +306,7 @@ paths:
- Config - Config
security: security:
- OAuth2: - OAuth2:
- admin - admin
responses: responses:
'200': '200':
description: successful operation description: successful operation
@ -320,7 +320,7 @@ paths:
- Config - Config
security: security:
- OAuth2: - OAuth2:
- admin - admin
responses: responses:
'200': '200':
description: successful operation description: successful operation
@ -336,7 +336,7 @@ paths:
- Config - Config
security: security:
- OAuth2: - OAuth2:
- admin - admin
responses: responses:
'200': '200':
description: successful operation description: successful operation
@ -345,7 +345,7 @@ paths:
summary: List instance jobs summary: List instance jobs
security: security:
- OAuth2: - OAuth2:
- admin - admin
tags: tags:
- Job - Job
parameters: parameters:
@ -455,7 +455,7 @@ paths:
post: post:
security: security:
- OAuth2: - OAuth2:
- admin - admin
tags: tags:
- Instance Follows - Instance Follows
summary: Follow a server summary: Follow a server
@ -481,7 +481,7 @@ paths:
summary: Create a user summary: Create a user
security: security:
- OAuth2: - OAuth2:
- admin - admin
tags: tags:
- Users - Users
responses: responses:
@ -545,7 +545,7 @@ paths:
summary: Delete a user summary: Delete a user
security: security:
- OAuth2: - OAuth2:
- admin - admin
tags: tags:
- Users - Users
operationId: delUserId operationId: delUserId
@ -634,7 +634,7 @@ paths:
summary: Get video imports of my user summary: Get video imports of my user
security: security:
- OAuth2: - OAuth2:
- user - user
tags: tags:
- Videos - Videos
- My User - My User
@ -711,7 +711,7 @@ paths:
summary: Get my user subscriptions summary: Get my user subscriptions
security: security:
- OAuth2: - OAuth2:
- user - user
tags: tags:
- My Subscriptions - My Subscriptions
parameters: parameters:
@ -727,7 +727,7 @@ paths:
summary: Add subscription to my user summary: Add subscription to my user
security: security:
- OAuth2: - OAuth2:
- user - user
requestBody: requestBody:
content: content:
application/json: application/json:
@ -752,7 +752,7 @@ paths:
summary: Get if subscriptions exist for my user summary: Get if subscriptions exist for my user
security: security:
- OAuth2: - OAuth2:
- user - user
tags: tags:
- My Subscriptions - My Subscriptions
parameters: parameters:
@ -797,7 +797,7 @@ paths:
summary: Get subscription of my user summary: Get subscription of my user
security: security:
- OAuth2: - OAuth2:
- user - user
tags: tags:
- My Subscriptions - My Subscriptions
parameters: parameters:
@ -813,7 +813,7 @@ paths:
summary: Delete subscription of my user summary: Delete subscription of my user
security: security:
- OAuth2: - OAuth2:
- user - user
tags: tags:
- My Subscriptions - My Subscriptions
parameters: parameters:
@ -1801,8 +1801,8 @@ paths:
summary: Delete an abuse summary: Delete an abuse
security: security:
- OAuth2: - OAuth2:
- admin - admin
- moderator - moderator
parameters: parameters:
- $ref: '#/components/parameters/abuseId' - $ref: '#/components/parameters/abuseId'
responses: responses:
@ -1873,8 +1873,8 @@ paths:
summary: Block a video summary: Block a video
security: security:
- OAuth2: - OAuth2:
- admin - admin
- moderator - moderator
tags: tags:
- Video Blocks - Video Blocks
parameters: parameters:
@ -1886,8 +1886,8 @@ paths:
summary: Unblock a video by its id summary: Unblock a video by its id
security: security:
- OAuth2: - OAuth2:
- admin - admin
- moderator - moderator
tags: tags:
- Video Blocks - Video Blocks
parameters: parameters:
@ -1904,8 +1904,8 @@ paths:
summary: List video blocks summary: List video blocks
security: security:
- OAuth2: - OAuth2:
- admin - admin
- moderator - moderator
parameters: parameters:
- name: type - name: type
in: query in: query
@ -1968,6 +1968,9 @@ paths:
/videos/{id}/captions/{captionLanguage}: /videos/{id}/captions/{captionLanguage}:
put: put:
summary: Add or replace a video caption summary: Add or replace a video caption
security:
- OAuth2:
- user
tags: tags:
- Video Captions - Video Captions
parameters: parameters:
@ -1993,6 +1996,9 @@ paths:
description: video or language not found description: video or language not found
delete: delete:
summary: Delete a video caption summary: Delete a video caption
security:
- OAuth2:
- user
tags: tags:
- Video Captions - Video Captions
parameters: parameters: