-
Notifications
You must be signed in to change notification settings - Fork 6
/
schema.yaml
193 lines (193 loc) · 4.99 KB
/
schema.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
openapi: 3.0.2
info:
title: Thumbtack API
version: '0.5.4'
description: Thumbtack's API for (un)mounting of forensic disk images
servers:
- url: http://localhost:8208/
paths:
/mounts:
get:
summary: List all mounted images
operationId: listImages
responses:
'200':
description: A list of all mounted images.
content:
application/json:
schema:
$ref: "#/components/schemas/DiskImages"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
/mounts/{imagePath}:
get:
summary: Info for a specific image
operationId: showImage
parameters:
- name: imagePath
in: path
required: true
description: The path of the image to retrieve
schema:
type: string
responses:
'200':
description: Expected response to a valid request
content:
application/json:
schema:
$ref: "#/components/schemas/DiskImage"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
put:
summary: Mount a specific image
operationId: mountImage
parameters:
- name: imagePath
in: path
required: true
description: The path of the image to mount
schema:
type: string
responses:
'200':
description: Expected response to a valid request
content:
application/json:
schema:
$ref: "#/components/schemas/DiskImage"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
delete:
summary: Unmount a specific image
operationId: unmountImage
parameters:
- name: imagePath
in: path
required: true
description: The path of the image to unmount
schema:
type: string
responses:
'200':
description: Expected response to a valid request
content:
application/json:
schema:
$ref: "#/components/schemas/DiskImage"
default:
description: unexpected error
content:
application/json:
schema:
$ref: "#/components/schemas/Error"
components:
schemas:
DiskImages:
type: array
items:
$ref: "#/components/schemas/DiskImage"
DiskImage:
description: Information about a forensics disk image
type: object
required:
- name
- imagepath
- volumes
properties:
name:
type: string
imagepath:
type: string
mountpoint:
type: string
volumes:
type: array
items:
$ref: "#/components/schemas/Volume"
example:
name: 10-ntfs-disk.dd
mountpoint: /tmp/image_mounter_mywskiue
imagepath: /vagrant/tests/test_images/dftt_images/10-ntfs-disk.dd
volumes:
- label: null
fstype: "?unknown"
fsdescription: "Primary Table (#0)"
mountpoint: ""
offset: 0
index: 0
size: 512
- label: null
fstype: "?unknown"
fsdescription: "Unallocated"
mountpoint: ""
offset: 0
index: 1
size: 32256
- label: "EXT3?"
fstype: "ntfs"
fsdescription: "NTFS / exFAT (0x07)"
mountpoint: "/tmp/im_2_8lhedh_c_EXT3?"
offset: 32256
index: 2
size: 49319424
- label: "UFS1?"
fstype: "ntfs"
fsdescription: "NTFS / exFAT (0x07)"
mountpoint: "/tmp/im_3__v1y0spv_UFS1?"
offset: 49351680
index: 3
size: 49351680
- label: null
fstype: "?unknown"
fsdescription: "Unallocated"
mountpoint: ""
offset: 98703360
index: 4
size: 2048
Volume:
description: Information about a forensics volume
type: object
required:
- name
- imagepath
- volumes
properties:
index:
type: integer
label:
type: string
fstype:
type: string
fsdescription:
type: string
offset:
type: integer
format: int64
size:
type: integer
format: int64
mountpoint:
type: string
Error:
required:
- code
- message
properties:
code:
type: integer
format: int32
message:
type: string