Skip to content

Commit

Permalink
docs: add accounts stats documentation (#2021)
Browse files Browse the repository at this point in the history
  • Loading branch information
Valentin Atanasov authored Nov 18, 2024
1 parent e5daa8a commit 27ed488
Showing 1 changed file with 82 additions and 0 deletions.
82 changes: 82 additions & 0 deletions docs/swagger_v3/stats.spec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -622,6 +622,88 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/stats/total-accounts:
get:
deprecated: false
description: Get total accounts created per interval stats.
operationId: GetTotalAccountsStats
parameters:
- name: interval_by
description: The interval in which to return the stats.
in: query
required: false
schema:
type: string
enum:
- day
- week
- month
example: week
- $ref: '#/components/parameters/LimitParam'
- $ref: '#/components/parameters/DirectionParam'
responses:
'200':
description: Returns paginated total accounts stats
content:
application/json:
schema:
allOf:
- type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Stat'
- $ref: '#/components/schemas/PaginatedResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/stats/active-accounts:
get:
deprecated: false
description: Get active accounts stats.
operationId: GetActiveAccountsStats
parameters:
- name: interval_by
description: The interval in which to return the stats.
in: query
required: false
schema:
type: string
enum:
- day
- week
- month
example: week
- $ref: '#/components/parameters/LimitParam'
- $ref: '#/components/parameters/DirectionParam'
responses:
'200':
description: Returns paginated active accounts stats
content:
application/json:
schema:
allOf:
- type: object
required:
- data
properties:
data:
type: array
items:
$ref: '#/components/schemas/Stat'
- $ref: '#/components/schemas/PaginatedResponse'
'400':
description: Bad request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
/stats/names:
get:
deprecated: false
Expand Down

0 comments on commit 27ed488

Please sign in to comment.