mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-24 01:10:31 +01:00
* Modify delete post diff response format Updated the delete operation response to return JSON content. * fix: timestamp open api schema
28 lines
662 B
YAML
28 lines
662 B
YAML
delete:
|
|
tags:
|
|
- posts
|
|
summary: delete a post diff
|
|
description: This operation deletes a post diff from its history.
|
|
parameters:
|
|
- in: path
|
|
name: pid
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: a valid post id
|
|
example: 2
|
|
- in: path
|
|
name: timestamp
|
|
schema:
|
|
type: number
|
|
required: true
|
|
description: a valid UNIX timestamp
|
|
example: 1611850000000
|
|
responses:
|
|
"200":
|
|
description: Post diff successfully deleted
|
|
content:
|
|
application/json:
|
|
schema:
|
|
$ref: ../diffs.yaml#/get/responses/200/content
|