ActivityPub-federated video streaming platform using P2P directly in your web browser
add accept/reject routes for server followers in openapi spec
Rigel Kent06dc7a1b9618
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yamlindex 460d5938bf..8cfd3e6d75 100644--- a/support/doc/api/openapi.yaml+++ b/support/doc/api/openapi.yaml@@ -505,66 +505,105 @@ paths:maxItems: 100items:$ref: '#/components/schemas/Job'- '/server/following/{host}':++ /server/followers:+ get:+ tags:+ - Instance Follows+ summary: List instances following the server+ parameters:+ - $ref: '#/components/parameters/followState'+ - $ref: '#/components/parameters/actorType'+ - $ref: '#/components/parameters/start'+ - $ref: '#/components/parameters/count'+ - $ref: '#/components/parameters/sort'+ responses:+ '200':+ description: successful operation+ content:+ application/json:+ schema:+ type: object+ properties:+ total:+ type: integer+ example: 1+ data:+ type: array+ items:+ $ref: '#/components/schemas/Follow'+ '/server/followers/{nameWithHost}':delete:+ summary: Remove or reject a follower to your serversecurity:- OAuth2:- admintags:- Instance Follows- summary: Unfollow a serverparameters:- - name: host+ - name: nameWithHostin: pathrequired: true- description: 'The host to unfollow '+ description: The remote actor handle to remove from your followersschema:type: string- format: hostname+ format: emailresponses:- '201':+ '204':description: successful operation- /server/followers:- get:+ '404':+ description: follower not found+ '/server/followers/{nameWithHost}/reject':+ post:+ summary: Reject a pending follower to your server+ security:+ - OAuth2:+ - admintags:- Instance Follows- summary: List instance followersparameters:- - $ref: '#/components/parameters/start'- - $ref: '#/components/parameters/count'- - $ref: '#/components/parameters/sort'+ - name: nameWithHost+ in: path+ required: true+ description: The remote actor handle to remove from your followers+ schema:+ type: string+ format: emailresponses:- '200':+ '204':description: successful operation- content:- application/json:- schema:- type: array- items:- $ref: '#/components/schemas/Follow'+ '404':+ description: follower not found+ '/server/followers/{nameWithHost}/accept':+ post:+ summary: Accept a pending follower to your server+ security:+ - OAuth2:+ - admin+ tags:+ - Instance Follows+ parameters:+ - name: nameWithHost+ in: path+ required: true+ description: The remote actor handle to remove from your followers+ schema:+ type: string+ format: email+ responses:+ '204':+ description: successful operation+ '404':+ description: follower not found+/server/following:get:tags:- Instance Followssummary: List instances followed by the serverparameters:- - name: state- in: query- schema:- type: string- enum:- - pending- - accepted- - name: actorType- in: query- schema:- type: string- enum:- - Person- - Application- - Group- - Service- - Organization+ - $ref: '#/components/parameters/followState'+ - $ref: '#/components/parameters/actorType'- $ref: '#/components/parameters/start'- $ref: '#/components/parameters/count'- $ref: '#/components/parameters/sort'@@ -574,16 +613,22 @@ paths:content:application/json:schema:- type: array- items:- $ref: '#/components/schemas/Follow'+ type: object+ properties:+ total:+ type: integer+ example: 1+ data:+ type: array+ items:+ $ref: '#/components/schemas/Follow'post:security:- OAuth2:- admintags:- Instance Follows- summary: Follow a server+ summary: Follow a list of serversresponses:'204':description: successful operation@@ -601,6 +646,28 @@ paths:type: stringformat: hostnameuniqueItems: true+ '/server/following/{host}':+ delete:+ summary: Unfollow a server+ security:+ - OAuth2:+ - admin+ tags:+ - Instance Follows+ parameters:+ - name: host+ in: path+ required: true+ description: The host to unfollow+ schema:+ type: string+ format: hostname+ responses:+ '204':+ description: successful operation+ '404':+ description: host not found+/users:post:summary: Create a user@@ -4378,6 +4445,25 @@ components:- activitypub-refresher- video-redundancy- video-live-ending+ followState:+ name: state+ in: query+ schema:+ type: string+ enum:+ - pending+ - accepted+ actorType:+ name: actorType+ in: query+ schema:+ type: string+ enum:+ - Person+ - Application+ - Group+ - Service+ - OrganizationsecuritySchemes:OAuth2:description: |