feat(api): add issue counts endpoint

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

View File

@@ -5815,6 +5815,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