diff --git a/src/api/public/apidocs-new/OBS-v2.10.50.yaml b/src/api/public/apidocs-new/OBS-v2.10.50.yaml index 96f046cd9f9..a7ada042212 100644 --- a/src/api/public/apidocs-new/OBS-v2.10.50.yaml +++ b/src/api/public/apidocs-new/OBS-v2.10.50.yaml @@ -136,6 +136,8 @@ paths: /comment/{comment_id}: $ref: 'paths/comment_comment_id.yaml' + /comments/user: + $ref: 'paths/comments_user.yaml' /comments/request/{id}: $ref: 'paths/comments_request_id.yaml' /comments/project/{project_name}: diff --git a/src/api/public/apidocs-new/components/schemas/comment.yaml b/src/api/public/apidocs-new/components/schemas/comment.yaml index e5d45b4341f..f24e2d7a81d 100644 --- a/src/api/public/apidocs-new/components/schemas/comment.yaml +++ b/src/api/public/apidocs-new/components/schemas/comment.yaml @@ -12,5 +12,21 @@ properties: type: string xml: attribute: true + parent: + type: integer + xml: + attribute: true + bsrequest: + type: integer + xml: + attribute: true + project: + type: string + xml: + attribute: true + package: + type: string + xml: + attribute: true # This schema is incomplete due to https://github.com/OAI/OpenAPI-Specification/issues/630, # comment element should have content diff --git a/src/api/public/apidocs-new/components/schemas/comments.yaml b/src/api/public/apidocs-new/components/schemas/comments.yaml index 5b5211e36a5..3ab57c96e94 100644 --- a/src/api/public/apidocs-new/components/schemas/comments.yaml +++ b/src/api/public/apidocs-new/components/schemas/comments.yaml @@ -16,5 +16,9 @@ properties: type: string xml: attribute: true + user: + type: string + xml: + attribute: true xml: name: comments diff --git a/src/api/public/apidocs-new/paths/comments_user.yaml b/src/api/public/apidocs-new/paths/comments_user.yaml new file mode 100644 index 00000000000..80ea80345d2 --- /dev/null +++ b/src/api/public/apidocs-new/paths/comments_user.yaml @@ -0,0 +1,22 @@ +get: + summary: List all the logged in user's comments + description: List all the comments for the currently logged in user. + security: + - basic_authentication: [] + responses: + '200': + description: OK. The request has succeeded. + content: + application/xml; charset=utf-8: + schema: + $ref: '../components/schemas/comments.yaml' + example: | + + This is a pretty cool request! + This is a pretty cool project! + This is a pretty cool package! + + '401': + $ref: '../components/responses/unauthorized.yaml' + tags: + - Comments