mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-03-03 11:01:20 +01:00
docs: added new ACP routes
This commit is contained in:
@@ -98,8 +98,6 @@ paths:
|
|||||||
$ref: 'read/admin/settings/tags.yaml'
|
$ref: 'read/admin/settings/tags.yaml'
|
||||||
/api/admin/settings/post:
|
/api/admin/settings/post:
|
||||||
$ref: 'read/admin/settings/post.yaml'
|
$ref: 'read/admin/settings/post.yaml'
|
||||||
/api/admin/settings/activitypub:
|
|
||||||
$ref: 'read/admin/settings/activitypub.yaml'
|
|
||||||
/api/admin/settings/uploads:
|
/api/admin/settings/uploads:
|
||||||
$ref: 'read/admin/settings/uploads.yaml'
|
$ref: 'read/admin/settings/uploads.yaml'
|
||||||
/api/admin/settings/email:
|
/api/admin/settings/email:
|
||||||
@@ -148,6 +146,18 @@ paths:
|
|||||||
$ref: 'read/admin/manage/uploads.yaml'
|
$ref: 'read/admin/manage/uploads.yaml'
|
||||||
/api/admin/manage/digest:
|
/api/admin/manage/digest:
|
||||||
$ref: 'read/admin/manage/digest.yaml'
|
$ref: 'read/admin/manage/digest.yaml'
|
||||||
|
/api/admin/federation/general:
|
||||||
|
$ref: 'read/admin/federation/general.yaml'
|
||||||
|
/api/admin/federation/content:
|
||||||
|
$ref: 'read/admin/federation/content.yaml'
|
||||||
|
/api/admin/federation/rules:
|
||||||
|
$ref: 'read/admin/federation/rules.yaml'
|
||||||
|
/api/admin/federation/relays:
|
||||||
|
$ref: 'read/admin/federation/relays.yaml'
|
||||||
|
/api/admin/federation/pruning:
|
||||||
|
$ref: 'read/admin/federation/pruning.yaml'
|
||||||
|
/api/admin/federation/safety:
|
||||||
|
$ref: 'read/admin/federation/safety.yaml'
|
||||||
"/api/admin/appearance/themes":
|
"/api/admin/appearance/themes":
|
||||||
$ref: 'read/admin/appearance/themes.yaml'
|
$ref: 'read/admin/appearance/themes.yaml'
|
||||||
"/api/admin/appearance/skins":
|
"/api/admin/appearance/skins":
|
||||||
|
|||||||
16
public/openapi/read/admin/federation/content.yaml
Normal file
16
public/openapi/read/admin/federation/content.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
|
summary: Get federation settings pertaining to content
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: ""
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
allOf:
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||||
16
public/openapi/read/admin/federation/general.yaml
Normal file
16
public/openapi/read/admin/federation/general.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
|
summary: Get general federation settings
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: ""
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
allOf:
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||||
16
public/openapi/read/admin/federation/pruning.yaml
Normal file
16
public/openapi/read/admin/federation/pruning.yaml
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
|
summary: Get federation content pruning settings
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: ""
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
allOf:
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
get:
|
get:
|
||||||
tags:
|
tags:
|
||||||
- admin
|
- admin
|
||||||
summary: Get federation (ActivityPub) settings
|
summary: Get federation settings pertaining to relays
|
||||||
responses:
|
responses:
|
||||||
"200":
|
"200":
|
||||||
description: ""
|
description: ""
|
||||||
@@ -13,11 +13,9 @@ get:
|
|||||||
properties:
|
properties:
|
||||||
title:
|
title:
|
||||||
type: string
|
type: string
|
||||||
instanceCount:
|
|
||||||
type: number
|
|
||||||
description: The number of ActivityPub-enabled instances that this forum knows about.
|
|
||||||
rules:
|
|
||||||
$ref: ../../../components/schemas/admin/rules.yaml#/RulesArray
|
|
||||||
relays:
|
relays:
|
||||||
$ref: ../../../components/schemas/admin/relays.yaml#/RelaysArray
|
$ref: ../../../components/schemas/admin/relays.yaml#/RelaysArray
|
||||||
|
hideSave:
|
||||||
|
type: boolean
|
||||||
|
description: A flag to instruct the template engine to hide the save button
|
||||||
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||||
21
public/openapi/read/admin/federation/rules.yaml
Normal file
21
public/openapi/read/admin/federation/rules.yaml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
|
summary: Get federation settings pertaining to auto-categorization rules
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: ""
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
allOf:
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
rules:
|
||||||
|
$ref: ../../../components/schemas/admin/rules.yaml#/RulesArray
|
||||||
|
hideSave:
|
||||||
|
type: boolean
|
||||||
|
description: A flag to instruct the template engine to hide the save button
|
||||||
|
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||||
18
public/openapi/read/admin/federation/safety.yaml
Normal file
18
public/openapi/read/admin/federation/safety.yaml
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
get:
|
||||||
|
tags:
|
||||||
|
- admin
|
||||||
|
summary: Get federation settings pertaining to trust and safety
|
||||||
|
responses:
|
||||||
|
"200":
|
||||||
|
description: ""
|
||||||
|
content:
|
||||||
|
application/json:
|
||||||
|
schema:
|
||||||
|
allOf:
|
||||||
|
- type: object
|
||||||
|
properties:
|
||||||
|
title:
|
||||||
|
type: string
|
||||||
|
instanceCount:
|
||||||
|
type: number
|
||||||
|
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|
||||||
Reference in New Issue
Block a user