-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathopen_api_specification.yaml
More file actions
1797 lines (1773 loc) · 60.2 KB
/
open_api_specification.yaml
File metadata and controls
1797 lines (1773 loc) · 60.2 KB
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
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: "3.0.0"
info:
version: "2.0.0"
title: "Real Device Access API - (Open Beta)"
x-last-modified: "2025-11-19"
x-beta: true
description: |
Access Sauce Labs' specialized real device farm to automate, test, and develop on real iOS and Android devices in the cloud. This API opens up our device infrastructure, enabling you to go beyond traditional testing workflows. Reserve a device once, then run multiple operations back-to-back on the same session—whether you're running automated tests, developing new features, or building custom automation workflows.
Once you have an active device session, interact with the device directly—install apps, execute shell commands, modify device settings, capture screenshots, and launch applications. For Android devices, access low-level ADB capabilities as if the device is connected locally. For iOS devices, access WebDriverAgent directly, or deploy your own fork of WebDriverAgent on the device. Our app resigning and instrumentation capabilities automatically handle code signing and provisioning for our diverse device fleet. Start a hosted Appium server, connect your own automation tools, or use the HTTP proxy for advanced scenarios.
servers:
- url: https://api.us-west-1.saucelabs.com/rdc/v2/
description: US West
- url: https://api.eu-central-1.saucelabs.com/rdc/v2/
description: EU Central
- url: https://api.us-east-4.saucelabs.com/rdc/v2/
description: US East
security:
- basicAuth: []
tags:
- name: Device Catalog
description: View the catalog of devices available to you and the current state of the devices.
- name: Session Lifecycle
description: Create, Inspect and Close your Sauce Labs Real Device session.
- name: Device Interactions
description: Interact with your Device.
- name: Device File Management
description: Manage files on the device storage (Android only).
- name: Appium Server
description: Start an Appium Server in our Sauce Cloud. This server runs next to your device and will remain active as long as the device session is active.
- name: HTTP Proxy
description: Allows you to proxy HTTP/S to your device. Can be used as a port-forward to your device.
paths:
/devices:
get:
summary: "List all device descriptors"
description: "List our catalog of devices available to you. Use this endpoint to retrieve 'device descriptors'. Note: for public devices there can be multiple physical devices that share one 'device descriptor'"
tags:
- "Device Catalog"
parameters:
- name: deviceId
in: query
description: "Filter by device identifier (supports regex). Matches the descriptor ID or device name."
required: false
schema:
type: string
example: "iPhone.*"
responses:
"200":
description: Ok
content:
application/json:
schema:
type: array
items:
$ref: "#/components/schemas/DeviceDescriptor"
"401":
$ref: "#/components/responses/NotAuthorized"
/devices/status:
get:
summary: "List the status of all devices"
description: "Lists the current status of all devices. For private devices, additional details are available, including the precise state and current user. The delay of this state is < 1s."
tags:
- "Device Catalog"
parameters:
- name: state
in: query
description: Filter by device state
style: form
explode: true
schema:
$ref: "#/components/schemas/DeviceStatus"
- name: privateOnly
in: query
description: Show only private devices for the authenticated customer
schema:
type: boolean
- name: deviceName
in: query
description: "Filter by device identifier (supports regex). Matches both descriptor and deviceName fields."
schema:
type: string
example: "iPhone.*"
responses:
"200":
description: Ok
content:
application/json:
schema:
type: object
properties:
devices:
type: array
items:
$ref: "#/components/schemas/Device"
"401":
$ref: "#/components/responses/NotAuthorized"
/sessions:
post:
summary: "Allocate a device and create a new session"
description: |
Creates a new device session.
tags:
- "Session Lifecycle"
requestBody:
content:
application/json:
schema:
type: object
properties:
device:
type: object
properties:
deviceName:
type: string
description: "Device identifier (supports regex). If omitted, any device will be selected. Matches both descriptor and deviceName fields."
example: "iPhone_16_real"
os:
description: Filter by operating system (Android or iOS). The enum is case insensitive.
type: string
enum: [android, ios]
example: ios
configuration:
type: object
properties:
tunnel:
type: object
$ref: "#/components/schemas/TunnelConfiguration"
sessionDuration:
type: string
format: ISO-8601
description: 'Session duration in ISO-8601 format. Sets the expiresAt timestamp; sessions will be forcefully closed after that time. Default: 6 hours. Max: 24 hours. Sessions longer than 6 hours may be forcefully closed before expiresAt.'
example: "PT1H"
responses:
"200":
description: Ok
content:
application/json:
schema:
$ref: "#/components/schemas/SessionCreation"
"400":
$ref: "#/components/responses/BadRequest"
get:
summary: List device sessions
description: Retrieves a list of device sessions, including pending, active and recently closed sessions.
tags:
- "Session Lifecycle"
parameters:
- name: state
in: query
required: false
description: Filter out sessions returned based on state
schema:
$ref: "#/components/schemas/SessionState"
- name: deviceName
in: query
required: false
description: "Filter by device identifier (supports regex). Matches both descriptor and deviceName fields."
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
type: object
properties:
sessions:
type: array
items:
$ref: "#/components/schemas/Session"
"401":
$ref: "#/components/responses/NotAuthorized"
/sessions/{sessionId}:
get:
summary: Get details of a specific device session
tags:
- "Session Lifecycle"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
responses:
"200":
description: OK
content:
application/json:
schema:
$ref: "#/components/schemas/Session"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
delete:
summary: Close and release a device session
tags:
- "Session Lifecycle"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
- name : rebootDevice
in: query
required: false
description: Perform a device reboot after session release. Only applicable for private devices.
schema:
$ref: "#/components/schemas/RebootDevice"
responses:
"200":
$ref: "#/components/responses/CloseDeviceSession"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/executeShellCommand:
post:
summary: Execute an adb shell command on an Android device
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- adbShellCommand
properties:
adbShellCommand:
type: string
description: "The shell command to execute on the device. Note: you do not need to prefix your command with 'adb shell' to run."
example: "ls /"
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
properties:
stdout:
type: string
description: The stdout of your shell command.
example: "acct debug_ramdisk keyrefuge sdcard\napex default.prop linkerconfig sepolicy_version\naudit_filter_table dev lost+found spu\nbin dpolicy mnt storage\n"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
"502":
description: Temporary network error while proxying adb shell command to device.
content:
application/problem+json:
schema:
type: object
properties:
type:
type: string
example: about:blank
title:
type: string
example: ADB command error
detail:
type: string
example: Temporary network error occurred while sending adb command to device. Please try again or pick another device. If this issue persists please get in contact with your Sauce Labs representative.
"504":
description: Timeout occurred while proxying adb shell command to device.
content:
application/problem+json:
schema:
type: object
properties:
type:
type: string
example: about:blank
title:
type: string
example: ADB command error
detail:
type: string
example: Timed out while waiting for adb command to complete. Please do not execute long running adb commands. If this issue persists please get in contact with your Sauce Labs representative.
/sessions/{sessionId}/device/openUrl:
post:
summary: Open a url (through browser) or a deeplink to an app
description: "Opens a URL or deeplink based on the URL scheme. iOS supports deeplinking; Android opens all URLs in Chrome."
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- url
properties:
url:
type: string
example: "https://example.com"
responses:
"204":
description: Command executed successfully
"400":
$ref: "#/components/responses/DeviceIsNotReady"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/installApp:
post:
summary: Install an app from App Storage
description: Install an app on the device. The installation will take place in the background. Use listAppInstallations to query for status.
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/AppInstallation"
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
$ref: "#/components/schemas/AppInstallationStatus"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/listAppInstallations:
post:
summary: List ongoing, completed and failed app installations
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
properties:
appInstallations:
type: array
items:
$ref: "#/components/schemas/AppInstallationStatus"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/uninstallApp:
post:
summary: Uninstall an app currently installed on the device
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
description: "Requires either a 'bundleId' for iOS or a 'packageName' for Android, but not both."
oneOf:
- type: object
required:
- bundleId
properties:
bundleId:
type: string
description: "The bundle identifier of the iOS app to uninstall."
example: "com.saucelabs.rdc.demo"
- type: object
required:
- packageName
properties:
packageName:
type: string
description: "The package name of the Android app to uninstall."
example: "com.saucelabs.mydemoapp.android"
responses:
"204":
description: Command executed successfully
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/applySettings:
post:
summary: Change device configuration
description: |
Changes device settings such as orientation, locale, or animations during an active session.
The request body must contain **at least one** of the properties below.
**Note**: Some settings are OS-specific. Please review the parameter descriptions for details.
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
minProperties: 1
properties:
orientation:
type: string
description: "The desired screen orientation. Supported on both **Android** and **iOS**."
enum:
- "PORTRAIT"
- "LANDSCAPE"
example: "PORTRAIT"
locale:
type: string
description: "**Android only.** Sets the system-wide language and country (IETF BCP 47 format, e.g., 'en-US', 'fr-CA'). Not supported on iOS because changing locale requires a device reboot, which is not supported during an active session."
example: "en_US"
animations:
type: boolean
description: "**Android only.** Enable or disable system animations to improve test stability and speed."
example: false
responses:
"204":
description: Command executed successfully
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/launchApp:
post:
summary: Launch an app on device
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- id
properties:
bundleId:
type: string
description: Bundle identifier (iOS)
example: "com.apple.XXX"
packageName:
type: string
description: Package Name of app to launch (Android)
example: "com.android.XXX"
activityName:
type: string
description: Main Activity Name of app to launch (Android)
example: "com.android.XXX.Activity"
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/launchWebDriverAgent:
post:
summary: Launch WDA installed on the device
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
$ref: "#/components/schemas/LaunchWDARequest"
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
$ref: "#/components/schemas/RunningWDA"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
"409":
$ref: "#/components/responses/WDAAlreadyStarted"
/sessions/{sessionId}/device/checkWebDriverAgentStatus:
post:
summary: Get launching status for WDA
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
$ref: "#/components/schemas/RunningWDA"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/takeScreenshot:
post:
summary: Take a screenshot from device
description: Takes a screenshot from the device and returns a PNG representation.
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
responses:
"200":
description: OK
content:
image/png:
schema:
type: string
format: binary
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/enableNetworkCapture:
post:
summary: Start network traffic capture
description: Initiates system-wide network traffic capture for the device session.
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
responses:
"204":
description: Network capture started successfully
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/disableNetworkCapture:
post:
summary: Stop network traffic capture
description: Stops the ongoing system-wide network traffic capture for the device session. Returns HTTP 204.
tags:
- "Device Interactions"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
responses:
"204":
description: Network capture stopped successfully
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/appiumserver:
post:
summary: Start an Appium server that runs next to the device.
tags:
- "Appium Server"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
type: object
required:
- appiumVersion
properties:
appiumVersion:
type: string
description: The appium version to use. Please check https://docs.saucelabs.com/mobile-apps/automated-testing/appium/appium-versions/#real-devices
example: "latest"
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
$ref: "#/components/schemas/AppiumSession"
"400":
$ref: "#/components/responses/BadRequest"
"403":
$ref: "#/components/responses/Forbidden"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
get:
summary: Get details of the status of the hosted appium server
tags:
- "Appium Server"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
$ref: "#/components/schemas/AppiumSession"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
/sessions/{sessionId}/device/listFiles:
post:
summary: List files in a directory on the device
description: |
Returns a list of files and directories at the specified path on the device storage.
**Supported OS**: Android only.
tags:
- "Device File Management"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/ListFilesRequest"
responses:
"200":
description: List of files retrieved successfully
content:
application/json:
schema:
type: array
items:
type: string
example: "/sdcard/Download/file.txt"
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
"422":
$ref: "#/components/responses/CapabilityNotSupported"
"500":
$ref: "#/components/responses/DeviceFileOperationError"
/sessions/{sessionId}/device/removeFile:
post:
summary: Remove a file from the device
description: |
Deletes a specific file from the device storage.
**Supported OS**: Android only.
tags:
- "Device File Management"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/RemoveFilesRequest"
responses:
"204":
description: File removed successfully
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
"422":
$ref: "#/components/responses/CapabilityNotSupported"
"500":
$ref: "#/components/responses/DeviceFileOperationError"
/sessions/{sessionId}/device/pushFile:
post:
summary: Push a file to the device
description: |
Uploads a file to the specified destination path on the device storage.
**Supported OS**: Android only.
**Format**: Multipart Form Data.
tags:
- "Device File Management"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
multipart/form-data:
schema:
type: object
required:
- destinationPath
- file
properties:
destinationPath:
type: string
description: "The absolute path on the device where the file should be saved (e.g., /sdcard/Download/image.png)."
example: "/sdcard/Download/test-image.png"
file:
type: string
format: binary
description: "The binary content of the file to upload."
responses:
"204":
description: File uploaded successfully
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
"422":
$ref: "#/components/responses/CapabilityNotSupported"
"500":
$ref: "#/components/responses/DeviceFileOperationError"
/sessions/{sessionId}/device/pullFile:
post:
summary: Pull a file from the device
description: |
Retrieves a file from the device storage as a binary stream.
**Supported OS**: Android only.
tags:
- "Device File Management"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/PullFileRequest"
responses:
"200":
description: File retrieved successfully
content:
application/octet-stream:
schema:
type: string
format: binary
headers:
Content-Disposition:
description: Indicates the filename of the downloaded file.
schema:
type: string
example: 'attachment; filename="report.txt"'
"400":
$ref: "#/components/responses/BadRequest"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
"422":
$ref: "#/components/responses/CapabilityNotSupported"
"500":
$ref: "#/components/responses/DeviceFileOperationError"
/sessions/{sessionId}/device/proxy/http/{targetHost}/{targetPort}/{targetPath}:
get:
summary: Forward a single http GET request via a proxy running on the device.
description: Forward a single http request via a proxy running on the device. Transparently forwards the provided GET request and proxies the response from the server as the proxy in the device receives it
tags:
- "HTTP Proxy"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
- name: targetHost
in: path
required: true
description: The target host to make the request to
schema:
type: string
example: "localhost"
- name: targetPort
in: path
required: true
description: The port the target host is listening on
schema:
type: string
example: "8100"
- name: targetPath
in: path
required: true
description: The path to make the request to. Can contain query parameters, which will be forwarded too.
schema:
type: string
example: "status"
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/NotAuthorized"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
post:
summary: Forward a single http POST request via a proxy running on the device.
description: Forward a single http request via a proxy running on the device. Transparently forwards the provided POST request and proxies the response from the server as the proxy in the device receives it
tags:
- "HTTP Proxy"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
- name: targetHost
in: path
required: true
description: The target host to make the request to
schema:
type: string
example: "localhost"
- name: targetPort
in: path
required: true
description: The port the target host is listening on
schema:
type: string
example: "8100"
- name: targetPath
in: path
required: true
description: The path to make the request to. Can contain query parameters, which will be forwarded too.
schema:
type: string
example: "status"
responses:
"200":
description: Command executed successfully
content:
application/json:
schema:
type: object
"400":
$ref: "#/components/responses/BadRequest"
"401":
$ref: "#/components/responses/NotAuthorized"
"404":
$ref: "#/components/responses/DeviceSessionNotFound"
"429":
$ref: "#/components/responses/TooManyRequests"
put:
summary: Forward a single http PUT request via a proxy running on the device.
description: Forward a single http request via a proxy running on the device. Transparently forwards the provided PUT request and proxies the response from the server as the proxy in the device receives it
tags:
- "HTTP Proxy"
parameters:
- name: sessionId
in: path
required: true
description: The id of the device session
schema:
type: string
- name: targetHost
in: path
required: true
description: The target host to make the request to
schema:
type: string
example: "localhost"
- name: targetPort
in: path
required: true
description: The port the target host is listening on