feat(api): add issue counts endpoint (#2713)

This commit is contained in:
Danshil Kokil Mungur
2022-04-26 03:06:36 +04:00
committed by GitHub
parent 29be659512
commit e4039d09c0
2 changed files with 93 additions and 1 deletions

View File

@@ -5562,6 +5562,36 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Issue'
/issue/count:
get:
summary: Gets issue counts
description: |
Returns the number of open and closed issues, as well as the number of issues of each type.
tags:
- issue
responses:
'200':
description: Issue counts returned
content:
application/json:
schema:
type: object
properties:
total:
type: number
video:
type: number
audio:
type: number
subtitles:
type: number
others:
type: number
open:
type: number
closed:
type: number
/issue/{issueId}:
get:
summary: Get issue