Node.js based forum software built for the modern web
feat: openapi spec for acp category federation page
Julian Lamfc3f3a78314c
diff --git a/public/openapi/read.yaml b/public/openapi/read.yamlindex aa0aeffa15..3597fb1be8 100644--- a/public/openapi/read.yaml+++ b/public/openapi/read.yaml@@ -100,6 +100,8 @@ paths:$ref: 'read/admin/manage/categories/category_id.yaml'"/api/admin/manage/categories/{category_id}/analytics":$ref: 'read/admin/manage/categories/category_id/analytics.yaml'+ "/api/admin/manage/categories/{category_id}/federation":+ $ref: 'read/admin/manage/categories/category_id/federation.yaml'"/api/admin/manage/privileges/{cid}":$ref: 'read/admin/manage/privileges/cid.yaml'/api/admin/manage/tags:diff --git a/public/openapi/read/admin/manage/categories/category_id/federation.yaml b/public/openapi/read/admin/manage/categories/category_id/federation.yamlnew file mode 100644index 0000000000..27f9464c3a--- /dev/null+++ b/public/openapi/read/admin/manage/categories/category_id/federation.yaml@@ -0,0 +1,41 @@+get:+ tags:+ - admin+ summary: Get category anayltics+ parameters:+ - name: category_id+ in: path+ required: true+ schema:+ type: string+ example: 1+ responses:+ "200":+ description: ""+ content:+ application/json:+ schema:+ allOf:+ - type: object+ properties:+ cid:+ type: number+ enabled:+ type: number+ description: Whether ActivityPub integration is enabled in site settings+ name:+ type: string+ following:+ type: array+ items:+ type: object+ properties:+ id:+ type: string+ description: The activity+json uri of the followed actor+ approved:+ type: boolean+ description: Whether the follow request has been accepted+ selectedCategory:+ $ref: ../../../../../components/schemas/CategoryObject.yaml#/CategoryObject+ - $ref: ../../../../../components/schemas/CommonProps.yaml#/CommonProps\ No newline at end of file