mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-27 10:50:47 +01:00
* move post queue from socket.io to rest api * move harmony post-queue to core add canEdit, allow users to edit their queued posts * fix: openapi spec * lint: whitespace
36 lines
853 B
YAML
36 lines
853 B
YAML
post:
|
|
summary: Notify the owner of a queued post
|
|
tags:
|
|
- QueuedPosts
|
|
parameters:
|
|
- in: path
|
|
name: id
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: a valid queued post id
|
|
example: 2
|
|
requestBody:
|
|
required: true
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
message:
|
|
type: string
|
|
example: body of the notification message
|
|
responses:
|
|
'200':
|
|
description: post successfully accepted
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../../../components/schemas/Status.yaml#/Status
|
|
response:
|
|
type: object
|
|
'400':
|
|
description: Bad request, invalid post id |