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.
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
delete:
|
|
tags:
|
|
- posts
|
|
summary: deletes a post
|
|
description: This operation soft deletes a post.
|
|
parameters:
|
|
- in: path
|
|
name: pid
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: a valid post id
|
|
example: 2
|
|
responses:
|
|
'200':
|
|
description: Post successfully deleted
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../../../components/schemas/Status.yaml#/Status
|
|
response:
|
|
type: object
|
|
properties: {}
|
|
put:
|
|
tags:
|
|
- posts
|
|
summary: restore a post
|
|
description: This operation restores a post.
|
|
parameters:
|
|
- in: path
|
|
name: pid
|
|
schema:
|
|
type: string
|
|
required: true
|
|
description: a valid post id
|
|
example: 2
|
|
responses:
|
|
'200':
|
|
description: Topic successfully restored
|
|
content:
|
|
application/json:
|
|
schema:
|
|
type: object
|
|
properties:
|
|
status:
|
|
$ref: ../../../components/schemas/Status.yaml#/Status
|
|
response:
|
|
type: object
|
|
properties: {} |