mirror of
https://github.com/NodeBB/NodeBB.git
synced 2026-06-02 02:12:22 +02:00
Also refactored privilege render logic so that it no longer needs a server-side hack to render column count
126 lines
4.5 KiB
YAML
126 lines
4.5 KiB
YAML
get:
|
|
tags:
|
|
- admin
|
|
summary: Get category privileges
|
|
parameters:
|
|
- name: cid
|
|
in: path
|
|
required: true
|
|
schema:
|
|
type: string
|
|
example: 1
|
|
responses:
|
|
"200":
|
|
description: ""
|
|
content:
|
|
application/json:
|
|
schema:
|
|
allOf:
|
|
- type: object
|
|
properties:
|
|
privileges:
|
|
type: object
|
|
properties:
|
|
labels:
|
|
type: object
|
|
properties:
|
|
users:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
groups:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
keys:
|
|
type: object
|
|
properties:
|
|
users:
|
|
type: array
|
|
items:
|
|
type: string
|
|
groups:
|
|
type: array
|
|
items:
|
|
type: string
|
|
users:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
nameEscaped:
|
|
type: string
|
|
privileges:
|
|
type: object
|
|
additionalProperties:
|
|
type: boolean
|
|
description: Each privilege will have a key in this object
|
|
groups:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
name:
|
|
type: string
|
|
nameEscaped:
|
|
type: string
|
|
privileges:
|
|
type: object
|
|
additionalProperties:
|
|
type: boolean
|
|
description: Each privilege will have a key in this object
|
|
isPrivate:
|
|
type: boolean
|
|
isSystem:
|
|
type: boolean
|
|
columnCountUserOther:
|
|
type: number
|
|
columnCountGroupOther:
|
|
type: number
|
|
categories:
|
|
type: array
|
|
items:
|
|
type: object
|
|
properties:
|
|
cid:
|
|
type: number
|
|
description: A category identifier
|
|
name:
|
|
type: string
|
|
icon:
|
|
type: string
|
|
selected:
|
|
type: boolean
|
|
level:
|
|
type: string
|
|
parentCid:
|
|
type: number
|
|
description: The category identifier for the category that is the immediate
|
|
ancestor of the current category
|
|
color:
|
|
type: string
|
|
bgColor:
|
|
type: string
|
|
imageClass:
|
|
type: string
|
|
required:
|
|
- cid
|
|
- name
|
|
- icon
|
|
- selected
|
|
selectedCategory:
|
|
$ref: ../../../../components/schemas/CategoryObject.yaml#/CategoryObject
|
|
cid:
|
|
type: number
|
|
description: A category identifier
|
|
group:
|
|
type: string
|
|
- $ref: ../../../../components/schemas/CommonProps.yaml#/CommonProps |