docs: added new ACP routes

This commit is contained in:
Julian Lam
2026-02-27 11:54:30 -05:00
parent 0b3dd38bc2
commit 82b7f429e3
7 changed files with 103 additions and 8 deletions

View 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

View 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

View 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

View File

@@ -1,7 +1,7 @@
get:
tags:
- admin
summary: Get federation (ActivityPub) settings
summary: Get federation settings pertaining to relays
responses:
"200":
description: ""
@@ -13,11 +13,9 @@ get:
properties:
title:
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:
$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

View 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

View 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