add GetComments and update proto

This commit is contained in:
2023-08-14 14:27:29 +03:00
parent 85d1191dd9
commit 37e92e8473
16 changed files with 850 additions and 142 deletions

View File

@@ -5,6 +5,32 @@ info:
title: PkgdashService API
version: 0.0.1
paths:
/v1/comment:
get:
tags:
- PkgdashService
operationId: GetComments
parameters:
- name: id
in: query
schema:
type: array
items:
type: integer
format: uint64
responses:
default:
description: Default
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorRsp'
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/GetCommentsRsp'
/v1/module:
get:
tags:
@@ -167,6 +193,21 @@ components:
properties:
status:
type: string
Comment:
type: object
properties:
id:
type: integer
format: uint64
package:
type: integer
format: uint64
text:
type: string
created:
type: string
updated:
type: string
Error:
type: object
properties:
@@ -183,6 +224,13 @@ components:
properties:
error:
$ref: '#/components/schemas/Error'
GetCommentsRsp:
type: object
properties:
comments:
type: array
items:
$ref: '#/components/schemas/Comment'
GetModuleRsp:
type: object
properties: