@@ -2,14 +2,14 @@
|
||||
|
||||
openapi: 3.0.3
|
||||
info:
|
||||
title: PkgdashService API
|
||||
title: Pkgdash API
|
||||
version: 0.0.1
|
||||
paths:
|
||||
/v1/comments/{id}/comments:
|
||||
get:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: CommentsLookup
|
||||
- Pkgdash
|
||||
operationId: CommentLookup
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
@@ -34,12 +34,12 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CommentsLookupRsp'
|
||||
$ref: '#/components/schemas/CommentLookupRsp'
|
||||
/v1/modules:
|
||||
get:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: ModulesList
|
||||
- Pkgdash
|
||||
operationId: ModuleList
|
||||
responses:
|
||||
default:
|
||||
description: Default
|
||||
@@ -52,12 +52,12 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/ModulesListRsp'
|
||||
$ref: '#/components/schemas/ModuleListRsp'
|
||||
/v1/packages:
|
||||
get:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: PackagesList
|
||||
- Pkgdash
|
||||
operationId: PackageList
|
||||
responses:
|
||||
default:
|
||||
description: Default
|
||||
@@ -70,16 +70,16 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/PackagesListRsp'
|
||||
$ref: '#/components/schemas/PackageListRsp'
|
||||
post:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: PackagesCreate
|
||||
- Pkgdash
|
||||
operationId: PackageCreate
|
||||
requestBody:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/PackagesCreateReq'
|
||||
$ref: '#/components/schemas/PackageCreateReq'
|
||||
required: true
|
||||
responses:
|
||||
default:
|
||||
@@ -93,12 +93,12 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/PackagesCreateRsp'
|
||||
$ref: '#/components/schemas/PackageCreateRsp'
|
||||
/v1/packages/{id}:
|
||||
get:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: PackagesLookup
|
||||
- Pkgdash
|
||||
operationId: PackageLookup
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
@@ -118,11 +118,11 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/PackagesLookupRsp'
|
||||
$ref: '#/components/schemas/PackageLookupRsp'
|
||||
put:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: PackagesUpdate
|
||||
- Pkgdash
|
||||
operationId: PackageUpdate
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
@@ -134,7 +134,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/PackagesUpdateReq'
|
||||
$ref: '#/components/schemas/PackageUpdateReq'
|
||||
required: true
|
||||
responses:
|
||||
default:
|
||||
@@ -148,11 +148,11 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/PackagesUpdateRsp'
|
||||
$ref: '#/components/schemas/PackageUpdateRsp'
|
||||
delete:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: PackagesDelete
|
||||
- Pkgdash
|
||||
operationId: PackageDelete
|
||||
parameters:
|
||||
- name: id
|
||||
in: path
|
||||
@@ -172,12 +172,12 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/PackagesDeleteRsp'
|
||||
$ref: '#/components/schemas/PackageDeleteRsp'
|
||||
/v1/packages/{package_id}/comments/{id}:
|
||||
delete:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: CommentsDelete
|
||||
- Pkgdash
|
||||
operationId: CommentDelete
|
||||
parameters:
|
||||
- name: package_id
|
||||
in: path
|
||||
@@ -203,12 +203,12 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CommentsDeleteRsp'
|
||||
$ref: '#/components/schemas/CommentDeleteRsp'
|
||||
/v1/packages/{package}/comments:
|
||||
get:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: CommentsList
|
||||
- Pkgdash
|
||||
operationId: CommentList
|
||||
parameters:
|
||||
- name: package
|
||||
in: path
|
||||
@@ -232,11 +232,11 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CommentsListRsp'
|
||||
$ref: '#/components/schemas/CommentListRsp'
|
||||
post:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: CommentsCreate
|
||||
- Pkgdash
|
||||
operationId: CommentCreate
|
||||
parameters:
|
||||
- name: package
|
||||
in: path
|
||||
@@ -247,7 +247,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CommentsCreateReq'
|
||||
$ref: '#/components/schemas/CommentCreateReq'
|
||||
required: true
|
||||
responses:
|
||||
default:
|
||||
@@ -261,12 +261,12 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/CommentsCreateRsp'
|
||||
$ref: '#/components/schemas/CommentCreateRsp'
|
||||
/v1/packages/{package}/modules:
|
||||
get:
|
||||
tags:
|
||||
- PkgdashService
|
||||
operationId: PackagesModules
|
||||
- Pkgdash
|
||||
operationId: PackageModules
|
||||
parameters:
|
||||
- name: package
|
||||
in: path
|
||||
@@ -286,7 +286,7 @@ paths:
|
||||
content:
|
||||
application/json:
|
||||
schema:
|
||||
$ref: '#/components/schemas/PackagesModulesRsp'
|
||||
$ref: '#/components/schemas/PackageModulesRsp'
|
||||
components:
|
||||
schemas:
|
||||
Comment:
|
||||
@@ -306,7 +306,7 @@ components:
|
||||
updated:
|
||||
type: string
|
||||
format: RFC3339
|
||||
CommentsCreateReq:
|
||||
CommentCreateReq:
|
||||
type: object
|
||||
properties:
|
||||
package_id:
|
||||
@@ -314,22 +314,22 @@ components:
|
||||
format: uint64
|
||||
comment:
|
||||
type: string
|
||||
CommentsCreateRsp:
|
||||
CommentCreateRsp:
|
||||
type: object
|
||||
properties:
|
||||
comment:
|
||||
$ref: '#/components/schemas/Comment'
|
||||
CommentsDeleteRsp:
|
||||
CommentDeleteRsp:
|
||||
type: object
|
||||
properties: {}
|
||||
CommentsListRsp:
|
||||
CommentListRsp:
|
||||
type: object
|
||||
properties:
|
||||
comments:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Comment'
|
||||
CommentsLookupRsp:
|
||||
CommentLookupRsp:
|
||||
type: object
|
||||
properties:
|
||||
comment:
|
||||
@@ -358,7 +358,7 @@ components:
|
||||
last_check:
|
||||
type: string
|
||||
format: RFC3339
|
||||
ModulesListRsp:
|
||||
ModuleListRsp:
|
||||
type: object
|
||||
properties:
|
||||
modules:
|
||||
@@ -375,6 +375,8 @@ components:
|
||||
type: string
|
||||
url:
|
||||
type: string
|
||||
description:
|
||||
type: string
|
||||
modules:
|
||||
type: integer
|
||||
format: uint64
|
||||
@@ -393,7 +395,7 @@ components:
|
||||
last_check:
|
||||
type: string
|
||||
format: RFC3339
|
||||
PackagesCreateReq:
|
||||
PackageCreateReq:
|
||||
type: object
|
||||
properties:
|
||||
name:
|
||||
@@ -405,34 +407,34 @@ components:
|
||||
items:
|
||||
type: integer
|
||||
format: uint64
|
||||
PackagesCreateRsp:
|
||||
PackageCreateRsp:
|
||||
type: object
|
||||
properties:
|
||||
package:
|
||||
$ref: '#/components/schemas/Package'
|
||||
PackagesDeleteRsp:
|
||||
PackageDeleteRsp:
|
||||
type: object
|
||||
properties: {}
|
||||
PackagesListRsp:
|
||||
PackageListRsp:
|
||||
type: object
|
||||
properties:
|
||||
packages:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Package'
|
||||
PackagesLookupRsp:
|
||||
PackageLookupRsp:
|
||||
type: object
|
||||
properties:
|
||||
package:
|
||||
$ref: '#/components/schemas/Package'
|
||||
PackagesModulesRsp:
|
||||
PackageModulesRsp:
|
||||
type: object
|
||||
properties:
|
||||
modules:
|
||||
type: array
|
||||
items:
|
||||
$ref: '#/components/schemas/Module'
|
||||
PackagesUpdateReq:
|
||||
PackageUpdateReq:
|
||||
type: object
|
||||
properties:
|
||||
id:
|
||||
@@ -452,10 +454,10 @@ components:
|
||||
items:
|
||||
type: integer
|
||||
format: uint64
|
||||
PackagesUpdateRsp:
|
||||
PackageUpdateRsp:
|
||||
type: object
|
||||
properties:
|
||||
package:
|
||||
$ref: '#/components/schemas/Package'
|
||||
tags:
|
||||
- name: PkgdashService
|
||||
- name: Pkgdash
|
||||
|
Reference in New Issue
Block a user