[mirotalsfu] - add stats endpoint

هذا الالتزام موجود في:
Miroslav Pejic
2024-12-20 21:10:50 +01:00
الأصل 08edcc2b04
التزام 3109adcfc9
12 ملفات معدلة مع 240 إضافات و5 حذوفات

عرض الملف

@@ -12,6 +12,24 @@ schemes:
- http
paths:
/stats:
get:
tags:
- 'stats'
summary: 'Get stats'
description: 'Get meetings'
produces:
- 'application/json'
security:
- secretApiKey: []
responses:
'200':
description: 'Get Stats done'
schema:
$ref: '#/definitions/StatsResponse'
'403':
description: 'Unauthorized!'
/meetings:
get:
tags:
@@ -107,6 +125,13 @@ securityDefinitions:
description: 'Format like this: authorization: {API_KEY_SECRET}'
definitions:
StatsResponse:
type: object
properties:
meetings:
type: array
items:
$ref: '#/definitions/Stats'
MeetingsResponse:
type: object
properties:
@@ -193,6 +218,15 @@ definitions:
browser:
type: string
Stats:
type: object
properties:
success:
type: boolean
totalRooms:
type: integer
totalUser:
type: integer
Meeting:
type: object
properties: