refactor: topic mark read/unread routes
parent
82b4984b9d
commit
36895421ba
@ -0,0 +1,29 @@
|
||||
put:
|
||||
tags:
|
||||
- topics
|
||||
summary: mark topic unread for all
|
||||
description: |
|
||||
This operation marks a topic as unread for all users.
|
||||
|
||||
**Note**: This is a privileged call and can only be executed by administrators, global moderators, or the moderator for the category of the passed-in topic.
|
||||
parameters:
|
||||
- in: path
|
||||
name: tid
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
description: a valid topic id
|
||||
example: 1
|
||||
responses:
|
||||
'200':
|
||||
description: Topic successfully marked unread for all
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
$ref: ../../../components/schemas/Status.yaml#/Status
|
||||
response:
|
||||
type: object
|
||||
properties: {}
|
@ -0,0 +1,52 @@
|
||||
delete:
|
||||
tags:
|
||||
- topics
|
||||
summary: mark topic unread
|
||||
description: This operation marks a topic as unread for the calling user.
|
||||
parameters:
|
||||
- in: path
|
||||
name: tid
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
description: a valid topic id
|
||||
example: 1
|
||||
responses:
|
||||
'200':
|
||||
description: Topic successfully marked unread.
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
$ref: ../../../components/schemas/Status.yaml#/Status
|
||||
response:
|
||||
type: object
|
||||
properties: {}
|
||||
put:
|
||||
tags:
|
||||
- topics
|
||||
summary: mark topic read
|
||||
description: This operation marks a topic as read for the calling user.
|
||||
parameters:
|
||||
- in: path
|
||||
name: tid
|
||||
schema:
|
||||
type: string
|
||||
required: true
|
||||
description: a valid topic id
|
||||
example: 1
|
||||
responses:
|
||||
'200':
|
||||
description: Topic successfully marked read
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
type: object
|
||||
properties:
|
||||
status:
|
||||
$ref: ../../../components/schemas/Status.yaml#/Status
|
||||
response:
|
||||
type: object
|
||||
properties: {}
|
Loading…
Reference in New Issue