add GetComments and update proto
This commit is contained in:
@@ -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:
|
||||
|
Reference in New Issue
Block a user