|
|
|
@ -1,8 +1,8 @@
|
|
|
|
|
put:
|
|
|
|
|
delete:
|
|
|
|
|
tags:
|
|
|
|
|
- posts
|
|
|
|
|
summary: restore a post
|
|
|
|
|
description: This operation restores a post.
|
|
|
|
|
summary: deletes a post
|
|
|
|
|
description: This operation soft deletes a post.
|
|
|
|
|
parameters:
|
|
|
|
|
- in: path
|
|
|
|
|
name: pid
|
|
|
|
@ -10,10 +10,10 @@ put:
|
|
|
|
|
type: string
|
|
|
|
|
required: true
|
|
|
|
|
description: a valid post id
|
|
|
|
|
example: 1
|
|
|
|
|
example: 2
|
|
|
|
|
responses:
|
|
|
|
|
'200':
|
|
|
|
|
description: Topic successfully restored
|
|
|
|
|
description: Post successfully deleted
|
|
|
|
|
content:
|
|
|
|
|
application/json:
|
|
|
|
|
schema:
|
|
|
|
@ -24,11 +24,11 @@ put:
|
|
|
|
|
response:
|
|
|
|
|
type: object
|
|
|
|
|
properties: {}
|
|
|
|
|
delete:
|
|
|
|
|
put:
|
|
|
|
|
tags:
|
|
|
|
|
- posts
|
|
|
|
|
summary: deletes a post
|
|
|
|
|
description: This operation soft deletes a post.
|
|
|
|
|
summary: restore a post
|
|
|
|
|
description: This operation restores a post.
|
|
|
|
|
parameters:
|
|
|
|
|
- in: path
|
|
|
|
|
name: pid
|
|
|
|
@ -36,10 +36,10 @@ delete:
|
|
|
|
|
type: string
|
|
|
|
|
required: true
|
|
|
|
|
description: a valid post id
|
|
|
|
|
example: 1
|
|
|
|
|
example: 2
|
|
|
|
|
responses:
|
|
|
|
|
'200':
|
|
|
|
|
description: Post successfully deleted
|
|
|
|
|
description: Topic successfully restored
|
|
|
|
|
content:
|
|
|
|
|
application/json:
|
|
|
|
|
schema:
|
|
|
|
|