Add validation on route GetOneArticle
This commit is contained in:
@@ -31,7 +31,7 @@ val converters: ConverterDeclaration = {
|
||||
invalidParams = listOf(
|
||||
InvalidParam(
|
||||
"ID",
|
||||
"ID must be UUID"
|
||||
"must be UUID"
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
@@ -147,6 +147,12 @@ paths:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ArticleResponse'
|
||||
400:
|
||||
description: BadReqest
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/400'
|
||||
/articles/{article}/versions:
|
||||
parameters:
|
||||
- $ref: '#/components/parameters/article'
|
||||
|
||||
Reference in New Issue
Block a user