mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 16:46:12 +01:00
feat: openapi spec for acp category federation page
This commit is contained in:
@@ -100,6 +100,8 @@ paths:
|
|||||||
$ref: 'read/admin/manage/categories/category_id.yaml'
|
$ref: 'read/admin/manage/categories/category_id.yaml'
|
||||||
"/api/admin/manage/categories/{category_id}/analytics":
|
"/api/admin/manage/categories/{category_id}/analytics":
|
||||||
$ref: 'read/admin/manage/categories/category_id/analytics.yaml'
|
$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}":
|
"/api/admin/manage/privileges/{cid}":
|
||||||
$ref: 'read/admin/manage/privileges/cid.yaml'
|
$ref: 'read/admin/manage/privileges/cid.yaml'
|
||||||
/api/admin/manage/tags:
|
/api/admin/manage/tags:
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in New Issue
Block a user