OpenApi: move comment path parameter to generic type
This commit is contained in:
@@ -283,14 +283,7 @@ paths:
|
|||||||
$ref: '#/components/schemas/ConstitutionResponse'
|
$ref: '#/components/schemas/ConstitutionResponse'
|
||||||
/comments/{comment}:
|
/comments/{comment}:
|
||||||
parameters:
|
parameters:
|
||||||
- name: comment
|
- $ref: '#/components/parameters/comment'
|
||||||
in: path
|
|
||||||
description: The ID of comment
|
|
||||||
example: 701dc504-db49-7e3a-2c0a-32542507ea57
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
get:
|
get:
|
||||||
summary: Get Comment by Comment ID
|
summary: Get Comment by Comment ID
|
||||||
tags:
|
tags:
|
||||||
@@ -323,14 +316,7 @@ paths:
|
|||||||
|
|
||||||
/comments/{comment}/children:
|
/comments/{comment}/children:
|
||||||
parameters:
|
parameters:
|
||||||
- name: comment
|
- $ref: '#/components/parameters/comment'
|
||||||
in: path
|
|
||||||
description: The ID of comment
|
|
||||||
example: 701dc504-db49-7e3a-2c0a-32542507ea57
|
|
||||||
required: true
|
|
||||||
schema:
|
|
||||||
type: string
|
|
||||||
format: uuid
|
|
||||||
get:
|
get:
|
||||||
summary: Get Comment children by Comment ID
|
summary: Get Comment children by Comment ID
|
||||||
tags:
|
tags:
|
||||||
@@ -599,6 +585,16 @@ components:
|
|||||||
type: string
|
type: string
|
||||||
format: uuid
|
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:
|
securitySchemes:
|
||||||
JWTAuth:
|
JWTAuth:
|
||||||
type: http
|
type: http
|
||||||
|
|||||||
Reference in New Issue
Block a user