You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
150 lines
5.4 KiB
YAML
150 lines
5.4 KiB
YAML
4 years ago
|
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
|
||
|
columnCountUser:
|
||
|
type: number
|
||
|
columnCountUserOther:
|
||
|
type: number
|
||
|
columnCountGroup:
|
||
|
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:
|
||
|
type: object
|
||
|
properties:
|
||
|
cid:
|
||
|
type: number
|
||
|
description: A category identifier
|
||
|
name:
|
||
|
type: string
|
||
|
level:
|
||
|
type: string
|
||
|
icon:
|
||
|
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
|
||
|
selected:
|
||
|
type: boolean
|
||
|
cid:
|
||
|
type: number
|
||
|
description: A category identifier
|
||
|
group:
|
||
|
type: string
|
||
|
- $ref: ../../../../components/schemas/CommonProps.yaml#/CommonProps
|