pkgdash/proto/apidocs.swagger.yaml
Vasiliy Tolstov 59e28e5a86 updates
Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
2023-08-19 16:55:52 +03:00

462 lines
14 KiB
YAML

# Generated with protoc-gen-go-micro
openapi: 3.0.3
info:
title: PkgdashService API
version: 0.0.1
paths:
/v1/comments/{id}/comments:
get:
tags:
- PkgdashService
operationId: CommentsLookup
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: uint64
- name: package_id
in: query
schema:
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/CommentsLookupRsp'
/v1/modules:
get:
tags:
- PkgdashService
operationId: ModulesList
responses:
default:
description: Default
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorRsp'
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/ModulesListRsp'
/v1/packages:
get:
tags:
- PkgdashService
operationId: PackagesList
responses:
default:
description: Default
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorRsp'
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PackagesListRsp'
post:
tags:
- PkgdashService
operationId: PackagesCreate
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PackagesCreateReq'
required: true
responses:
default:
description: Default
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorRsp'
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PackagesCreateRsp'
/v1/packages/{id}:
get:
tags:
- PkgdashService
operationId: PackagesLookup
parameters:
- name: id
in: path
required: true
schema:
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/PackagesLookupRsp'
put:
tags:
- PkgdashService
operationId: PackagesUpdate
parameters:
- name: id
in: path
required: true
schema:
type: integer
format: uint64
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/PackagesUpdateReq'
required: true
responses:
default:
description: Default
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorRsp'
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/PackagesUpdateRsp'
delete:
tags:
- PkgdashService
operationId: PackagesDelete
parameters:
- name: id
in: path
required: true
schema:
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/PackagesDeleteRsp'
/v1/packages/{package_id}/comments/{id}:
delete:
tags:
- PkgdashService
operationId: CommentsDelete
parameters:
- name: package_id
in: path
required: true
schema:
type: integer
format: uint64
- name: id
in: path
required: true
schema:
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/CommentsDeleteRsp'
/v1/packages/{package}/comments:
get:
tags:
- PkgdashService
operationId: CommentsList
parameters:
- name: package
in: path
required: true
schema:
type: string
- name: package_id
in: query
schema:
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/CommentsListRsp'
post:
tags:
- PkgdashService
operationId: CommentsCreate
parameters:
- name: package
in: path
required: true
schema:
type: string
requestBody:
content:
application/json:
schema:
$ref: '#/components/schemas/CommentsCreateReq'
required: true
responses:
default:
description: Default
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorRsp'
"200":
description: OK
content:
application/json:
schema:
$ref: '#/components/schemas/CommentsCreateRsp'
/v1/packages/{package}/modules:
get:
tags:
- PkgdashService
operationId: PackagesModules
parameters:
- name: package
in: path
required: true
schema:
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/PackagesModulesRsp'
components:
schemas:
Comment:
type: object
properties:
id:
type: integer
format: uint64
package:
type: integer
format: uint64
comment:
type: string
created:
type: string
format: RFC3339
updated:
type: string
format: RFC3339
CommentsCreateReq:
type: object
properties:
package_id:
type: integer
format: uint64
comment:
type: string
CommentsCreateRsp:
type: object
properties:
comment:
$ref: '#/components/schemas/Comment'
CommentsDeleteRsp:
type: object
properties: {}
CommentsListRsp:
type: object
properties:
comments:
type: array
items:
$ref: '#/components/schemas/Comment'
CommentsLookupRsp:
type: object
properties:
comment:
$ref: '#/components/schemas/Comment'
ErrorRsp:
type: object
properties:
code:
type: string
title:
type: string
uuid:
type: string
details:
type: string
Module:
type: object
properties:
id:
type: integer
format: uint64
name:
type: string
version:
type: string
last_check:
type: string
format: RFC3339
ModulesListRsp:
type: object
properties:
modules:
type: array
items:
$ref: '#/components/schemas/Module'
Package:
type: object
properties:
id:
type: integer
format: uint64
name:
type: string
url:
type: string
modules:
type: integer
format: uint64
issues:
type: integer
format: uint64
comments:
type: integer
format: uint64
created:
type: string
format: RFC3339
updated:
type: string
format: RFC3339
last_check:
type: string
format: RFC3339
PackagesCreateReq:
type: object
properties:
name:
type: string
url:
type: string
modules:
type: array
items:
type: integer
format: uint64
PackagesCreateRsp:
type: object
properties:
package:
$ref: '#/components/schemas/Package'
PackagesDeleteRsp:
type: object
properties: {}
PackagesListRsp:
type: object
properties:
packages:
type: array
items:
$ref: '#/components/schemas/Package'
PackagesLookupRsp:
type: object
properties:
package:
$ref: '#/components/schemas/Package'
PackagesModulesRsp:
type: object
properties:
modules:
type: array
items:
$ref: '#/components/schemas/Module'
PackagesUpdateReq:
type: object
properties:
id:
type: integer
format: uint64
name:
type: string
url:
type: string
modules:
type: array
items:
type: integer
format: uint64
issues:
type: array
items:
type: integer
format: uint64
PackagesUpdateRsp:
type: object
properties:
package:
$ref: '#/components/schemas/Package'
tags:
- name: PkgdashService