refactor(api): post move to write API

This commit is contained in:
Julian Lam
2021-01-18 15:31:14 -05:00
parent 0fa4c11ea6
commit 966c4117ec
9 changed files with 93 additions and 43 deletions

View File

@@ -0,0 +1,36 @@
put:
tags:
- posts
summary: move a post
description: This operation moves a post to a different topic.
parameters:
- in: path
name: pid
schema:
type: number
required: true
description: a valid post id
example: 5
requestBody:
content:
application/json:
schema:
type: object
properties:
tid:
type: number
description: a valid topic id
example: 4
responses:
'200':
description: Post successfully moved
content:
application/json:
schema:
type: object
properties:
status:
$ref: ../../../components/schemas/Status.yaml#/Status
response:
type: object
properties: {}