diff --git a/src/main/resources/openApi.yaml b/src/main/resources/openApi.yaml index da637b2..e3de9c4 100644 --- a/src/main/resources/openApi.yaml +++ b/src/main/resources/openApi.yaml @@ -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