-
Notifications
You must be signed in to change notification settings - Fork 0
/
swagger.yaml
590 lines (586 loc) · 16.2 KB
/
swagger.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
swagger: '2.0'
info:
title: Fabric.io API
version: 0.0.3
host: fabric.io
paths:
"/oauth/token":
post:
summary: Get Authorization Token
operationId: OAuth
consumes:
- application/json
parameters:
- name: body
in: body
schema:
type: object
properties:
grant_type:
type: string
scope:
type: string
username:
type: string
password:
type: string
client_id:
type: string
client_secret:
type: string
required:
- grant_type
- scope
- username
- password
- client_id
- client_secret
responses:
200:
description: OAuth token and refresh token
schema:
type: object
properties:
access_token:
type: string
token_type:
type: string
expires_in:
type: integer
refresh_token:
type: string
scope:
type: string
401:
description: Unauthorized
schema:
type: object
properties:
error:
type: string
error_description:
type: string
status:
type: string
security: []
# "/api/v3/projects/{app_id}/answers_csv/{report}_csv":
# get:
# summary: Various metrics reports
# operationId: Report
# parameters:
# - $ref: "#/parameters/Authorization"
# - $ref: "#/parameters/app_id"
# - name: report
# required: true
# in: path
# type: string
# enum:
# - dwmau
# - sessions_over_segments
# - time_in_app_per_dau_by_segments
# - $ref: "#/parameters/start"
# - $ref: "#/parameters/end"
# - $ref: "#/parameters/build"
# produces:
# - text/csv
# responses:
# 200:
# description: A CSV report
# schema:
# type: string
# security: []
"/api/v2/organizations":
get:
summary: Get Organizations
operationId: Organizations
parameters:
- $ref: "#/parameters/Authorization"
produces:
- text/json
responses:
200:
description: all organizations details
schema:
type: array
items:
$ref: "#/definitions/Organization"
security: []
"/api/v2/apps":
get:
summary: Get All Apps
operationId: Apps
parameters:
- $ref: "#/parameters/Authorization"
responses:
200:
description: all apps details
schema:
type: array
items:
$ref: "#/definitions/App"
security: []
"/api/v2/apps/{app_id}":
get:
summary: Get Single App
operationId: App
parameters:
- $ref: "#/parameters/Authorization"
- $ref: "#/parameters/app_id"
responses:
200:
description: app details
schema:
$ref: "#/definitions/App"
security: []
"/api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/active_now.json":
get:
summary: Get Active Now
operationId: ActiveNow
parameters:
- $ref: "#/parameters/Authorization"
- $ref: "#/parameters/organization_id"
- $ref: "#/parameters/app_id"
- $ref: "#/parameters/build"
produces:
- text/json
responses:
200:
description: Report
schema:
allOf:
- type: object
x-name: values
properties:
cardinality:
type: integer
timestamp:
type: integer
- $ref: "#/definitions/DeltaReport"
security: []
"/api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/daily_new.json":
get:
summary: Get Daily New
operationId: DailyNew
parameters:
- $ref: "#/parameters/Authorization"
- $ref: "#/parameters/organization_id"
- $ref: "#/parameters/app_id"
- $ref: "#/parameters/start"
- $ref: "#/parameters/end"
- $ref: "#/parameters/build"
responses:
200:
description: Report
schema:
allOf:
- $ref: "#/definitions/BasicReport"
- $ref: "#/definitions/ModelReport"
- $ref: "#/definitions/DeltaReport"
- $ref: "#/definitions/SeriesDateInt"
security: []
"/api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/{period}_active.json":
get:
summary: Get Daily, Weekly, or Monthly Active
operationId: Active
parameters:
- $ref: "#/parameters/Authorization"
- $ref: "#/parameters/organization_id"
- $ref: "#/parameters/app_id"
- $ref: "#/parameters/start"
- $ref: "#/parameters/end"
- $ref: "#/parameters/build"
# - $ref: "#/parameters/transformation"
- name: period
type: string
in: path
required: true
enum: [daily, weekly, monthly]
responses:
200:
description: Report
schema:
allOf:
- $ref: "#/definitions/BasicReport"
- $ref: "#/definitions/ModelReport"
- $ref: "#/definitions/DeltaReport"
- $ref: "#/definitions/SeriesDateInt"
security: []
# "/api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/user_sessions_timeseries.json":
# get:
# summary: Get Session info
# operationId: Sessions
# parameters:
# - $ref: "#/parameters/Authorization"
# - $ref: "#/parameters/organization_id"
# - $ref: "#/parameters/app_id"
# - $ref: "#/parameters/start"
# - $ref: "#/parameters/end"
# - $ref: "#/parameters/build"
# - $ref: "#/parameters/transformation"
# responses:
# 200:
# description: Report
# schema:
# allOf:
# - $ref: "#/definitions/BasicReport"
# - $ref: "#/definitions/ModelReport"
# - $ref: "#/definitions/DeltaReport"
# - $ref: "#/definitions/SeriesDateNumber"
"/api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/time_in_app_per_dau.json":
get:
summary: Time in app per user
operationId: TimeInApp
parameters:
- $ref: "#/parameters/Authorization"
- $ref: "#/parameters/organization_id"
- $ref: "#/parameters/app_id"
- $ref: "#/parameters/start"
- $ref: "#/parameters/end"
- $ref: "#/parameters/build"
# - $ref: "#/parameters/transformation"
responses:
200:
description: Report
schema:
allOf:
- $ref: "#/definitions/BasicReport"
- $ref: "#/definitions/ModelReport"
- $ref: "#/definitions/DeltaReport"
- $ref: "#/definitions/SeriesDateNumber"
# "/graphql":
# post:
# x-host: api-dash.fabric.io
# summary: Get OOM
# operationId: OOM
# consumes:
# - application/json
# parameters:
# - $ref: "#/parameters/Authorization"
# - name: body
# in: body
# schema:
# type: string
# default: |-
# {
# "query": "query oomCountForDaysForBuild($app_id: String!, $builds: [String!]!, $days: Int!) { project(externalId: $app_id) { crashlytics{ oomCounts(builds: $builds, days: $days){ timeSeries{ allTimeCount } } oomSessionCounts(builds: $builds, days: $days){ timeSeries{ allTimeCount } } } } }",
# "variables": {
# "app_id": "{app_id}",
# "days": 1,
# "builds": [
# "3.0.4 (71)"
# ]
# }
# }
# responses:
# default:
# description: stub description for swagger compliance
# security: []
"/api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/total_sessions_scalar.json":
get:
summary: Get Sessions Count
operationId: SessionsCount
consumes:
- text/plain
parameters:
- $ref: "#/parameters/Authorization"
- $ref: "#/parameters/organization_id"
- $ref: "#/parameters/app_id"
- $ref: "#/parameters/build"
- $ref: "#/parameters/start"
- $ref: "#/parameters/end"
responses:
200:
description: Report
schema:
type: object
properties:
sessions:
type: integer
start:
type: integer
end:
type: integer
app_id:
type: string
builds:
type: array
items:
type: string
security: []
# "/api/v2/organizations/{organization_id}/apps/{app_id}/beta_distribution/releases/{release_id}":
# get:
# summary: Get All Builds
# operationId: AllBuilds
# consumes:
# - text/plain
# parameters:
# - $ref: "#/parameters/Authorization"
# - $ref: "#/parameters/organization_id"
# - $ref: "#/parameters/app_id"
# - name: release_id
# required: true
# in: path
# type: string
# responses:
# default:
# description: stub description for swagger compliance
# security: []
# "/api/v2/organizations/{organization_id}/apps/{app_id}/beta_distribution/releases":
# get:
# summary: Get Single Build
# operationId: SingleBuild
# parameters:
# - $ref: "#/parameters/Authorization"
# - $ref: "#/parameters/organization_id"
# - $ref: "#/parameters/app_id"
# - name: app[display_version]
# required: false
# in: query
# default: 3.0.5
# type: string
# enum:
# - 3.0.5
# - name: app[build_version]
# required: false
# in: query
# default: '75'
# type: string
# enum:
# - '75'
# responses:
# default:
# description: stub description for swagger compliance
# security: []
# "/api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/top_builds":
# get:
# summary: Get Top Builds
# operationId: TopBuilds
# parameters:
# - $ref: "#/parameters/Authorization"
# - $ref: "#/parameters/organization_id"
# - $ref: "#/parameters/app_id"
# - $ref: "#/parameters/start"
# - $ref: "#/parameters/end"
# responses:
# default:
# description: stub description for swagger compliance
# security: []
schemes:
- https
securityDefinitions: {}
parameters:
Authorization:
name: Authorization
required: true
in: header
type: string
organization_id:
name: organization_id
required: true
in: path
type: string
app_id:
name: app_id
required: true
in: path
type: string
days_since_epoch:
name: days_since_epoch
required: false
in: query
type: number
start:
name: start
required: false
in: query
type: integer
end:
name: end
required: false
in: query
type: integer
build:
name: build
required: false
in: query
type: string
default: all
transformation:
name: transformation
required: false
in: query
type: string
enum: [seasonal, weighted]
definitions:
Organization:
type: object
properties:
id:
type: string
alias:
type: string
name:
type: string
api_key:
type: string
enrollments:
type: object # {"beta_distribution":"true","answers_enhanced_feature_set_enabled_for_new_apps":"false","answers_ip_address_tracking_enabled_for_new_apps":"true"}
accounts_count:
type: integer
mopub_id:
type: string
sdk_organization:
type: boolean
apps_counts:
type: object # {"ios":3,"android":3}
build_secret:
type: string
App:
type: object
properties:
id:
type: string
name:
type: string
bundle_identifier:
type: string
base_identifier:
type: string
collect_analytics:
type: boolean
created_at:
type: string
analytics_app_has_received_data:
type: boolean
analytics_forward_to_google_analytics:
type: boolean
analytics_include_purchase_events_in_forwarded_events:
type: boolean
platform:
type: string
status:
type: string
latest_build:
type: string
icon_url:
type: string
icon_hash:
type: string
kit_versions:
type: string
sdk_kits:
type: string
map_of_available_products:
type: object
icon32_url:
type: string
icon64_url:
type: string
icon128_url:
type: string
accounts_count:
type: integer
organization_id:
type: string
watched:
type: integer
importance_level:
type: integer
dashboard_url:
type: string
impacted_devices_count:
type: integer
unresolved_issues_count:
type: integer
crashes_count:
type: integer
SeriesDateNumber:
type: object
properties:
series:
type: array
items:
type: array
items:
- type: integer
x-nullable: false
- type: number
x-nullable: false
SeriesDateInt:
type: object
properties:
series:
type: array
items:
type: array
items:
- type: integer
x-nullable: false
- type: integer
x-nullable: false
BasicReport:
type: object
properties:
start:
type: integer
end:
type: integer
app_id:
type: string
build:
type: string
ModelReport:
type: object
properties:
model:
type: string
osversion:
type: string
DeltaReport:
type: object
properties:
deltas:
type: object
properties:
week_over_week:
type: object
properties:
delta_fraction:
type: number
last_week_value:
type: number
# existing
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/active_now.json
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/daily_new.json
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/daily_active.json
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/total_sessions_scalar.json
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/top_build.json
#
# Retention
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/dau_history.json?
# days_since_epoch=17507
# build=all
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/retention.json?
# start=1510012800
# end=1512604800
# metric=all
# transformation=seasonal
# https://api-dash.fabric.io/graphql?relayDebugName=Project_selector_AccountRelayQL
#
# engagement
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/total_time_history.json?
# days_since_epoch=17507
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/wau_cohort_sessions.json?
# start=1510012800
# end=1512518400
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/sessions_over_dau.json?
# start=1510012800
# end=1512604800
# transformation=seasonal
# build=all
# /api/v2/organizations/{organization_id}/apps/{app_id}/growth_analytics/time_in_app_per_dau.json?
# start=1510012800
# end=1512604800
# transformation=seasonal
# build=all
#