-
Notifications
You must be signed in to change notification settings - Fork 1
/
awdb.yml
108 lines (108 loc) · 2.71 KB
/
awdb.yml
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
openapi: 3.0.2
info:
title: Android Web Debugging Bridge
description: This API exposes the functionality of Google's 'Android Debug Bridge'
utility.
license:
name: Apache 2.0
url: http://www.apache.org/licenses/LICENSE-2.0.html
version: 0.0.1
externalDocs:
description: Read more about ADB.
url: https://developer.android.com/studio/command-line/adb
tags:
- name: general commands
description: Information and status of ADB.
paths:
/help/:
get:
tags:
- general commands
summary: ADB's help page.
description: Returns the result of `adb help`.
responses:
200:
description: OK
content:
text/plain:
schema:
type: string
description: Raw contents of ADB's help page.
example: |
Android Debug Bridge version 1.0.41
Version 29.0.3
Installed as /usr/bin/adb
...
502:
description: Error communicating with ADB.
content:
text/plain:
schema:
type: string
description: Error message from Go.
/devices/:
get:
tags:
- general commands
summary: Details of all devices connected to ADB.
description: Returns the result of `adb devices -l` parsed into JSON.
responses:
200:
description: OK
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Device'
500:
description: Error encoding JSON.
content:
text/plain:
schema:
type: string
description: Error message from Go.
502:
description: Error communicating with ADB.
content:
text/plain:
schema:
type: string
description: Error message from Go.
components:
schemas:
Device:
required:
- serial_id
- state
- transport_id
- usb
type: object
properties:
transport_id:
type: integer
example: 1
serial_id:
type: string
example: 0a388e93
state:
type: string
enum:
- authorized
- unauthorized
- authorizing
- device
- offline
- no device
usb:
type: string
example: 1-1.4.2
product:
type: string
example: razor
model:
type: string
example: Nexus_7
device:
type: string
example: flo