-
Notifications
You must be signed in to change notification settings - Fork 3
/
appetize-v1 (1).yaml
832 lines (820 loc) · 34.6 KB
/
appetize-v1 (1).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
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
openapi: 3.0.3
info:
title: Appetize API
description: REST API for managing apps on Appetize.io
version: 1.0.0
servers:
- url: https://api.appetize.io/v1
security:
- apiToken: [ ]
paths:
/apps:
get:
summary: Get All Apps - Paginated
tags:
- Listing Apps
description: |
Retrieves information about all apps int he account, with associated metadata.
_Recommended approach for retrieving all apps._
parameters:
- in: query
name: nextKey
schema:
type: string
example: "xyz"
description: |
If results are truncated due to too many apps, response will include `hasMore:true` and a `nextKey` to retrieve the next page.
Pass the nextKey value as query parameter into the GET request to retrieve the next batch of apps.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
hasMore:
type: boolean
description: Indicates if results have been truncated
nextKey:
type: string
description: Query parameter for the next batch of results
data:
type: array
items:
type: object
properties:
publicKey:
type: string
description: The publicKey for the app.
created:
type: string
format: date-time
description: The date and time when the app was created.
updated:
type: string
format: date-time
description: The date and time when the app was last updated.
platform:
type: string
description: The platform of the app (ios or android).
bundle:
type: string
description: The app identifier of the app.
name:
type: string
description: The name of the app.
appDisplayName:
type: string
description: The display name of the app.
appVersionCode:
type: string
description: The version code of the app.
appVersionName:
type: string
description: The version name of the app.
versionCode:
type: integer
description: The incremental version code, managed by Appetize, for the app.
iconUrl:
type: string
format: uri
description: The URL to the app's icon image.
example:
hasMore: true
nextKey: "xyz"
data:
- publicKey: "p7nww3n6ubq73r1nh9jtauqy8w"
created: "2016-02-10T17:46:14.089Z"
updated: "2016-02-10T17:46:14.089Z"
platform: "ios"
bundle: "com.example.app"
name: "example"
appDisplayName: "Example App"
appVersionCode: "1"
appVersionName: "1.0.0"
versionCode: 1
iconUrl: "https://example.com/app.png"
- publicKey: "48g0593mgxut2fz57yw2hdjd24"
created: "2016-02-10T17:44:38.613Z"
updated: "2016-02-10T17:44:38.613Z"
platform: "ios"
bundle: "com.example.app2"
name: "example"
appDisplayName: "Example App"
appVersionCode: "1"
appVersionName: "1.0.0"
versionCode: 3
iconUrl: "https://example.com/app2.png"
post:
summary: Create new app
tags:
- Creating a new App
description: Creates a new app and returns a new publicKey
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- platform
properties:
url:
type: string
description: A publicly accessible link to your .zip, .tar.gz, or .apk file.
example: "https://example.com/app.zip"
platform:
type: string
enum:
- ios
- android
description: The platform of the app. Either ios or android.
example: "ios"
fileType:
type: string
enum:
- zip
- tar.gz
- apk
example: "zip"
description: The type of file that the url points to. Default is zip for iOS, apk for Android.
note:
type: string
example: "This is a note"
description: A note for your own purposes, will appear on your management dashboard.
timeout:
type: number
example: 120
description: |
The number of seconds to wait until automatically ending the session due to user inactivity.
Must be 30, 60, 90, 120, 180, 300, 600, 1800, 3600 or 7200, default is 120 or the account default if set.
disabled:
type: boolean
example: false
description: Disables streaming for this app.
disableHome:
type: boolean
example: false
description: Disables the home button on the iOS simulator when available.
useLastFrame:
type: boolean
example: false
description: Show the last image on the screen in the simulator after the session ends.
buttonText:
type: string
default: Tap to play
example: "Start"
description: Customize the message prompting the user to start the session. Default is "Tap to play".
postSessionButtonText:
type: string
default: Tap to play
example: "Restart"
description: Customize the message prompting the user to restart the session. Default is "Tap to play".
launchUrl:
type: string
example: "https://example.com/deeplink"
description: Specify a deep link to bring your users to a specific location when your app is launched.
appPermissions:
type: object
example: { "run": "authenticated", "networkProxy": "public", "networkIntercept": "public", "debugLog": "public", "adbConnect": "public", "androidPackageManager": "public" }
description: |
Values for each field determine who can perform the specified action.
See [App Permissions](https://docs.appetize.io/platform/app-permissions#permissions) for more information.
properties:
run:
type: string
nullable: true
description: >
Run your app:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
networkProxy:
type: string
nullable: true
description: >
Specify a network proxy when running app:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
networkIntercept:
type: string
nullable: true
description: >
Use Appetize's intercepting proxy when running the app:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
debugLog:
type: string
nullable: true
description: >
View your app's NSLog/Logger/Logcat output:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
adbConnect:
type: string
nullable: true
description: >
Debug your app by connecting ADB to the hosted emulator:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
androidPackageManager:
type: string
nullable: true
description: >
Allow the installation of additional APK's while your app is running:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
publicKey:
type: string
description: The unique identifier for the newly created app.
created:
type: string
format: date-time
description: The date and time when the app was created.
updated:
type: string
format: date-time
description: The date and time when the app was last updated.
platform:
type: string
description: The platform of the app (ios or android).
versionCode:
type: integer
description: Increments with each update of the app.
example:
publicKey: "p7nww3n6ubq73r1nh9jtauqy8w"
created: "2016-02-10T17:46:14.089Z"
updated: "2016-02-10T17:46:14.089Z"
platform: "ios"
versionCode: 1
/apps/all:
get:
summary: Get All Apps - Not Paginated
tags:
- Listing Apps
description: |
Retrieves information about all apps in the account, with associated metadata.
**NOTE:** _No pagination is performed so this query might be slow. It is recommended to use the paginated version of this query if possible._
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
data:
type: array
items:
type: object
properties:
publicKey:
type: string
description: The publicKey for the app.
created:
type: string
format: date-time
description: The date and time when the app was created.
updated:
type: string
format: date-time
description: The date and time when the app was last updated.
platform:
type: string
description: The platform of the app (ios or android).
bundle:
type: string
description: The app identifier of the app.
name:
type: string
description: The name of the app.
appDisplayName:
type: string
description: The display name of the app.
appVersionCode:
type: string
description: The version code of the app.
appVersionName:
type: string
description: The version name of the app.
versionCode:
type: integer
description: The incremental version code, managed by Appetize, for the app.
iconUrl:
type: string
format: uri
description: The URL to the app's icon image.
example:
data:
- publicKey: "p7nww3n6ubq73r1nh9jtauqy8w"
created: "2016-02-10T17:46:14.089Z"
updated: "2016-02-10T17:46:14.089Z"
platform: "ios"
bundle: "com.example.app"
name: "example"
appDisplayName: "Example App"
appVersionCode: "1"
appVersionName: "1.0.0"
versionCode: 1
iconUrl: "https://example.com/app.png"
- publicKey: "48g0593mgxut2fz57yw2hdjd24"
created: "2016-02-10T17:44:38.613Z"
updated: "2016-02-10T17:44:38.613Z"
platform: "ios"
bundle: "com.example.app2"
name: "example"
appDisplayName: "Example App"
appVersionCode: "1"
appVersionName: "1.0.0"
versionCode: 3
iconUrl: "https://example.com/app2.png"
/apps/{app_publicKey}:
get:
summary: Get a Single App
tags:
- Listing Apps
description: Retrieves information about a single app.
parameters:
- in: path
name: publicKey
required: true
schema:
type: string
example: "p7nww3n6ubq73r1nh9jtauqy8w"
description: The publicKey for the app.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
publicKey:
type: string
description: The publicKey for the app.
created:
type: string
format: date-time
description: The date and time when the app was created.
updated:
type: string
format: date-time
description: The date and time when the app was last updated.
platform:
type: string
description: The platform of the app (ios or android).
bundle:
type: string
description: The app identifier of the app.
name:
type: string
description: The name of the app.
appDisplayName:
type: string
description: The display name of the app.
appVersionCode:
type: string
description: The version code of the app.
appVersionName:
type: string
description: The version name of the app.
versionCode:
type: integer
description: The incremental version code, managed by Appetize, for the app.
iconUrl:
type: string
format: uri
description: The URL to the app's icon image.
example:
publicKey: "p7nww3n6ubq73r1nh9jtauqy8w"
created: "2016-02-10T17:46:14.089Z"
updated: "2016-02-10T17:46:14.089Z"
platform: "ios"
bundle: "com.example.app"
name: "example"
appDisplayName: "Example App"
appVersionCode: "1"
appVersionName: "1.0.0"
versionCode: 1
iconUrl: "https://example.com/app.png"
delete:
summary: Deletes an app.
tags:
- Deleting an App
description: Deletes an app. Your API token must be provisioned to the same account where the app was uploaded.
parameters:
- in: path
name: publicKey
required: true
schema:
type: string
example: "p7nww3n6ubq73r1nh9jtauqy8w"
description: The publicKey for the app.
responses:
'200':
description: OK
post:
summary: Update existing app
tags:
- Updating an existing App
description: Updates an existing app with a new build while keeping the same publicKey or changes app settings. To unset a previously set field send a `null` value.
parameters:
- in: path
name: publicKey
required: true
schema:
type: string
example: "p7nww3n6ubq73r1nh9jtauqy8w"
description: The publicKey for the app.
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
url:
type: string
example: "https://example.com/app.zip"
description: A publicly accessible link to your .zip, .tar.gz, or .apk file.
platform:
type: string
enum:
- ios
- android
example: "ios"
description: The platform of the app. Either ios or android.
fileType:
type: string
enum:
- zip
- tar.gz
- apk
example: "zip"
description: The type of file that the url points to. Default is zip for iOS, apk for Android.
note:
type: string
example: "This is a note"
description: A note for your own purposes, will appear on your management dashboard.
timeout:
type: number
example: 120
description: |
The number of seconds to wait until automatically ending the session due to user inactivity.
Must be 30, 60, 90, 120, 180, 300, 600, 1800, 3600 or 7200, default is 120 or the account default if set.
disabled:
type: boolean
example: false
description: Disables streaming for this app.
disableHome:
type: boolean
example: false
description: Disables the home button on the iOS simulator when available.
useLastFrame:
type: boolean
example: false
description: Show the last image on the screen in the simulator after the session ends.
buttonText:
type: string
default: Tap to play
example: "Start"
description: Customize the message prompting the user to start the session. Default is "Tap to play".
postSessionButtonText:
type: string
default: Tap to play
example: "Restart"
description: Customize the message prompting the user to restart the session. Default is "Tap to play".
launchUrl:
type: string
example: "https://example.com/deeplink"
description: Specify a deep link to bring your users to a specific location when your app is launched.
appPermissions:
type: object
example: { "run": "authenticated", "networkProxy": "public", "networkIntercept": "public", "debugLog": "public", "adbConnect": "public", "androidPackageManager": "public" }
description: |
Values for each field determine who can perform the specified action.
See [App Permissions](https://docs.appetize.io/platform/app-permissions#permissions) for more information.
properties:
run:
type: string
nullable: true
description: >
Run your app:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
networkProxy:
type: string
nullable: true
description: >
Specify a network proxy when running app:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
networkIntercept:
type: string
nullable: true
description: >
Use Appetize's intercepting proxy when running the app:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
debugLog:
type: string
nullable: true
description: >
View your app's NSLog/Logger/Logcat output:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
adbConnect:
type: string
nullable: true
description: >
Debug your app by connecting ADB to the hosted emulator:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
androidPackageManager:
type: string
nullable: true
description: >
Allow the installation of additional APK's while your app is running:
* `authenticated` - Must be authenticated into your account.
* `public` - Anyone with the app's publicKey.
* `null` - Resets to default.
enum: [ authenticated, public, null ]
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
publicKey:
type: string
description: The unique identifier for the newly created app.
created:
type: string
format: date-time
description: The date and time when the app was created.
updated:
type: string
format: date-time
description: The date and time when the app was last updated.
platform:
type: string
description: The platform of the app (ios or android).
versionCode:
type: integer
description: Increments with each update of the app.
example:
publicKey: "p7nww3n6ubq73r1nh9jtauqy8w"
created: "2016-02-10T17:46:14.089Z"
updated: "2016-02-10T17:46:14.089Z"
platform: "ios"
versionCode: 2
/apps/{appgroup_publicKey}:
get:
summary: Get an App Group
tags:
- Listing Apps
description: Retrieves information about an app group and all the apps associated with it.
parameters:
- in: path
name: publicKey
required: true
schema:
type: string
example: "ag_{publicKey}"
description: The publicKey for the app group (starts with `ag_`).
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
publicKey:
type: string
description: The publicKey for the app group.
created:
type: string
format: date-time
description: The date and time when the app group was created.
updated:
type: string
format: date-time
description: The date and time when the app group was last updated.
createdBy:
type: string
description: The user who created the app group.
name:
type: string
description: The name of the app group.
apps:
type: array
items:
type: string
description: The publicKeys of the apps in the app group.
example:
publicKey: "ag_{publicKey}"
name: "App Group Name"
created: "2016-02-10T17:46:14.089Z"
updated: "2016-02-10T17:46:14.089Z"
createdBy: "user@appetize.io"
apps: [ "p7nww3n6ubq73r1nh9jtauqy8w", "48g0593mgxut2fz57yw2hdjd24" ]
/available-devices:
get:
summary: Get Available Devices
servers:
- url: https://appetize.io
security: [ ]
tags:
- Devices & OS Versions
description: Get the list of available devices and operating systems.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
ios:
type: object
additionalProperties:
type: array
items:
type: string
android:
type: object
additionalProperties:
type: array
items:
type: string
example:
ios:
iphone4s: [ "8.4", "9.3" ]
iphone5s: [ "8.4", "9.3", "10.3", "11.4", "12.2" ]
iphone6: [ "8.4", "9.3", "10.3", "11.4", "12.2" ]
iphone6plus: [ "8.4", "9.3", "10.3", "11.4", "12.2" ]
iphone6s: [ "9.3", "10.3", "11.4", "12.2", "13.3", "14.0" ]
iphone6splus: [ "9.3", "10.3", "11.4", "12.2", "13.3", "14.0" ]
iphone7: [ "10.3", "11.4", "12.2", "13.3", "14.0" ]
iphone7plus: [ "10.3", "11.4", "12.2", "13.3", "14.0" ]
iphone8: [ "11.4", "12.2", "13.3", "14.0" ]
iphone8plus: [ "11.4", "12.2", "13.3", "14.0" ]
iphonex: [ "11.4", "12.2", "13.3", "14.0" ]
iphonexs: [ "12.2", "13.3", "14.0" ]
iphonexsmax: [ "12.2", "13.3", "14.0" ]
iphone11pro: [ "13.3", "14.0" ]
iphone11promax: [ "13.3", "14.0" ]
ipadair: [ "8.4", "9.3", "10.3", "11.4", "12.2" ]
ipadair2: [ "9.3", "10.3", "11.4", "12.2", "13.3", "14.0" ]
android:
nexus5: [ "4.4", "5.1", "6.0", "7.1", "8.1", "9.0", "10.0", "11.0" ]
nexus7: [ "4.4", "5.1", "6.0", "7.1", "8.1", "9.0", "10.0", "11.0" ]
nexus9: [ "4.4", "5.1", "6.0", "7.1", "8.1", "9.0", "10.0", "11.0" ]
pixel4: [ "10.0", "11.0" ]
pixel4xl: [ "10.0", "11.0" ]
galaxytabs7: [ "10.0", "11.0" ]
hammerhead: [ "6.0.1" ]
/ip-blocks:
get:
servers:
- url: https://appetize.io
summary: Get IP Blocks
security: [ ]
tags:
- IP Blocks
description: Get IP blocks for Appetize streaming servers. These are the IPs from which your running apps will be making network calls. Use the IP blocks to whitelist access to your backend if it is not public.
parameters:
- in: path
name: format
schema:
type: string
enum: [ txt, json ]
default: json
example: "json"
description: The format of the response. Default is JSON. If text is specified, the response will be a newline-separated list of IP addresses.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
ipv4:
type: array
items:
type: string
description: A list of IPv4 addresses.
example:
ipv4:
- "63.135.170.0/24"
- "66.55.157.0/24"
- "66.185.22.0/24"
- "73.15.222.0/24"
- "95.141.32.0/21"
/usageSummary:
get:
summary: Get Usage Summary
tags:
- Usage Summary
description: Gets usage summary of all sessions for your account, including number of sessions and session durations.
parameters:
- in: query
name: nextKey
schema:
type: string
example: "xyz"
description: |
If results are truncated, response will include `hasMore:true` and a `nextKey` to retrieve the next page.
Pass the nextKey value as query parameter into the GET request to retrieve the next batch of results.
- in: query
name: startMonth
schema:
type: string
format: date
example: "2023-05"
description: Specify a starting month for the usages summary e.g. '2023-07' will start the usage summary from July 2023.
responses:
'200':
description: OK
content:
application/json:
schema:
type: object
properties:
hasMore:
type: boolean
description: Indicates if results have been truncated
nextKey:
type: string
description: Query parameter for the next batch of results
data:
type: array
items:
type: object
properties:
month:
type: string
format: date
description: The month of the session data
publicKey:
type: string
description: The unique identifier for the app.
numSessions:
type: integer
description: The number of sessions for the month
minutes:
type: number
description: The total minutes of all sessions for the month
example:
hasMore: true
nextKey: "xyz"
data:
- month: "2023-07"
publicKey: "p7nww3n6ubq73r1nh9jtauqy8w"
numSessions: 325
minutes: 162.5
- month: "2023-08"
publicKey: "p7nww3n6ubq73r1nh9jtauqy8w"
numSessions: 102
minutes: 80.3
components:
securitySchemes:
apiToken:
type: http
scheme: basic
description: Use an API token for authentication.