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.
61 lines
2.0 KiB
YAML
61 lines
2.0 KiB
YAML
4 years ago
|
get:
|
||
|
tags:
|
||
|
- users
|
||
|
summary: Get user's watched categories
|
||
|
description: This route retrieves the list of categories and their watch states
|
||
|
parameters:
|
||
|
- name: userslug
|
||
|
in: path
|
||
|
required: true
|
||
|
schema:
|
||
|
type: string
|
||
|
example: admin
|
||
|
responses:
|
||
|
"200":
|
||
|
description: ""
|
||
|
content:
|
||
|
application/json:
|
||
|
schema:
|
||
|
allOf:
|
||
|
- $ref: ../../../components/schemas/UserObject.yaml#/UserObjectFull
|
||
|
- type: object
|
||
|
properties:
|
||
|
categories:
|
||
|
type: array
|
||
|
items:
|
||
|
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
|
||
|
descriptionParsed:
|
||
|
type: string
|
||
|
depth:
|
||
|
type: number
|
||
|
slug:
|
||
|
type: string
|
||
|
isIgnored:
|
||
|
type: boolean
|
||
|
isWatched:
|
||
|
type: boolean
|
||
|
isNotWatched:
|
||
|
type: boolean
|
||
|
imageClass:
|
||
|
type: string
|
||
|
title:
|
||
|
type: string
|
||
|
- $ref: ../../../components/schemas/CommonProps.yaml#/CommonProps
|