OpenApi: move comment path parameter to generic type

This commit is contained in:
2019-10-04 00:11:59 +02:00
parent bc8d187914
commit f7feb513e0

View File

@@ -283,14 +283,7 @@ paths:
$ref: '#/components/schemas/ConstitutionResponse'
/comments/{comment}:
parameters:
- name: comment
in: path
description: The ID of comment
example: 701dc504-db49-7e3a-2c0a-32542507ea57
required: true
schema:
type: string
format: uuid
- $ref: '#/components/parameters/comment'
get:
summary: Get Comment by Comment ID
tags:
@@ -323,14 +316,7 @@ paths:
/comments/{comment}/children:
parameters:
- name: comment
in: path
description: The ID of comment
example: 701dc504-db49-7e3a-2c0a-32542507ea57
required: true
schema:
type: string
format: uuid
- $ref: '#/components/parameters/comment'
get:
summary: Get Comment children by Comment ID
tags:
@@ -599,6 +585,16 @@ components:
type: string
format: uuid
comment:
name: comment
in: path
description: The ID of comment
example: 701dc504-db49-7e3a-2c0a-32542507ea57
required: true
schema:
type: string
format: uuid
securitySchemes:
JWTAuth:
type: http