Add route for get all versions of one article

This commit is contained in:
2019-09-05 17:15:54 +02:00
parent 6423491be3
commit 742927a590
4 changed files with 51 additions and 3 deletions

View File

@@ -159,9 +159,35 @@ paths:
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/ArticleResponse'
$ref: '#/components/schemas/ArticleResponse'
/articles/{article}/versions:
get:
summary: Get all versions of articles
tags:
- article
operationId: getArticleVersions
parameters:
- name: article
in: path
required: true
description: the ID of article
schema:
type: string
format: uuid
responses:
200:
description: The versions of Article
content:
application/json:
schema:
allOf:
- $ref: '#/components/schemas/Paginated'
- type: object
properties:
result:
type: array
items:
$ref: '#/components/schemas/ArticleResponse'
/constitutions:
get: