Browse Source

remove outdated badges, add authorization to caption routes

pull/3334/head
Rigel Kent 1 week ago
parent
commit
64b5c2476a
No known key found for this signature in database GPG Key ID: 5E53E96A494E452F
3 changed files with 27 additions and 36 deletions
  1. +0
    -12
      README.md
  2. +0
    -3
      server/tools/package.json
  3. +27
    -21
      support/doc/api/openapi.yaml

+ 0
- 12
README.md View File

@@ -43,10 +43,6 @@ Be part of a network of multiple small federated, interoperable video hosting pr

<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%">
<img src="https://automate.browserstack.com/badge.svg?badge_key=T2g0SVQyMTJtYVRWaEZQTE9LdU9UU1ZDSkY5dTJ6dGlNRUVIajd4QlIwST0tLVdTQ1NUZ0pUTzRZT3lyZzkvWGNSZ1E9PQ==--278d3c68ae0827ce57e245e9f5a3b8c35d6e2278%"/>
</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" />
</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/">
<img src="https://img.shields.io/badge/code%20style-standard-brightgreen.svg" alt="JavaScript Style Guide" />
</a>


+ 0
- 3
server/tools/package.json View File

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

+ 27
- 21
support/doc/api/openapi.yaml View File

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


Loading…
Cancel
Save