feat: openapi spec for acp category federation page

This commit is contained in:
Julian Lam
2024-04-30 11:20:59 -04:00
parent 449ffd66c3
commit fc3f3a7831
2 changed files with 43 additions and 0 deletions

View File

@@ -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:

View File

@@ -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