1
+ {
2
+ "info" : {
3
+ "_postman_id" : " 2deaea2d-0b5e-46d8-a7d1-478f315d4780" ,
4
+ "name" : " REST API File Server" ,
5
+ "schema" : " https://schema.getpostman.com/json/collection/v2.1.0/collection.json" ,
6
+ "_exporter_id" : " 27967994"
7
+ },
8
+ "item" : [
9
+ {
10
+ "name" : " Save File" ,
11
+ "request" : {
12
+ "method" : " PUT" ,
13
+ "header" : [],
14
+ "body" : {
15
+ "mode" : " formdata" ,
16
+ "formdata" : [
17
+ {
18
+ "key" : " file" ,
19
+ "type" : " file" ,
20
+ "src" : " /Users/eertree_work/experiments/rest-api-file-server/test-files/user_file.txt"
21
+ }
22
+ ]
23
+ },
24
+ "url" : {
25
+ "raw" : " {{proto}}://{{host}}:{{port}}/:file-system-path" ,
26
+ "protocol" : " {{proto}}" ,
27
+ "host" : [
28
+ " {{host}}"
29
+ ],
30
+ "port" : " {{port}}" ,
31
+ "path" : [
32
+ " :file-system-path"
33
+ ],
34
+ "variable" : [
35
+ {
36
+ "key" : " file-system-path" ,
37
+ "value" : " folder/file.txt"
38
+ }
39
+ ]
40
+ }
41
+ },
42
+ "response" : [
43
+ {
44
+ "name" : " Save File" ,
45
+ "originalRequest" : {
46
+ "method" : " PUT" ,
47
+ "header" : [],
48
+ "body" : {
49
+ "mode" : " formdata" ,
50
+ "formdata" : [
51
+ {
52
+ "key" : " file" ,
53
+ "type" : " file" ,
54
+ "src" : " /Users/eertree_work/experiments/rest-api-file-server/test-files/user_file.txt"
55
+ }
56
+ ]
57
+ },
58
+ "url" : {
59
+ "raw" : " {{proto}}://{{host}}:{{port}}/:file-system-path" ,
60
+ "protocol" : " {{proto}}" ,
61
+ "host" : [
62
+ " {{host}}"
63
+ ],
64
+ "port" : " {{port}}" ,
65
+ "path" : [
66
+ " :file-system-path"
67
+ ],
68
+ "variable" : [
69
+ {
70
+ "key" : " file-system-path" ,
71
+ "value" : " folder/file.txt"
72
+ }
73
+ ]
74
+ }
75
+ },
76
+ "status" : " OK" ,
77
+ "code" : 200 ,
78
+ "_postman_previewlanguage" : " json" ,
79
+ "header" : [
80
+ {
81
+ "key" : " Content-Type" ,
82
+ "value" : " application/json; charset=utf-8"
83
+ },
84
+ {
85
+ "key" : " Date" ,
86
+ "value" : " Sat, 16 Sep 2023 10:43:56 GMT"
87
+ },
88
+ {
89
+ "key" : " Content-Length" ,
90
+ "value" : " 27"
91
+ }
92
+ ],
93
+ "cookie" : [],
94
+ "body" : " \" Saved `/folder/file.txt`\" "
95
+ }
96
+ ]
97
+ },
98
+ {
99
+ "name" : " Get File" ,
100
+ "request" : {
101
+ "method" : " GET" ,
102
+ "header" : [],
103
+ "url" : {
104
+ "raw" : " {{proto}}://{{host}}:{{port}}/:file-system-path" ,
105
+ "protocol" : " {{proto}}" ,
106
+ "host" : [
107
+ " {{host}}"
108
+ ],
109
+ "port" : " {{port}}" ,
110
+ "path" : [
111
+ " :file-system-path"
112
+ ],
113
+ "variable" : [
114
+ {
115
+ "key" : " file-system-path" ,
116
+ "value" : " folder/file.txt"
117
+ }
118
+ ]
119
+ }
120
+ },
121
+ "response" : [
122
+ {
123
+ "name" : " Get File" ,
124
+ "originalRequest" : {
125
+ "method" : " GET" ,
126
+ "header" : [],
127
+ "url" : {
128
+ "raw" : " {{proto}}://{{host}}:{{port}}/:file-system-path" ,
129
+ "protocol" : " {{proto}}" ,
130
+ "host" : [
131
+ " {{host}}"
132
+ ],
133
+ "port" : " {{port}}" ,
134
+ "path" : [
135
+ " :file-system-path"
136
+ ],
137
+ "variable" : [
138
+ {
139
+ "key" : " file-system-path" ,
140
+ "value" : " folder/file.txt"
141
+ }
142
+ ]
143
+ }
144
+ },
145
+ "status" : " OK" ,
146
+ "code" : 200 ,
147
+ "_postman_previewlanguage" : " json" ,
148
+ "header" : [
149
+ {
150
+ "key" : " Accept-Ranges" ,
151
+ "value" : " bytes"
152
+ },
153
+ {
154
+ "key" : " Content-Length" ,
155
+ "value" : " 28"
156
+ },
157
+ {
158
+ "key" : " Content-Type" ,
159
+ "value" : " text/plain; charset=utf-8"
160
+ },
161
+ {
162
+ "key" : " Last-Modified" ,
163
+ "value" : " Sat, 16 Sep 2023 10:41:19 GMT"
164
+ },
165
+ {
166
+ "key" : " Date" ,
167
+ "value" : " Sat, 16 Sep 2023 10:41:35 GMT"
168
+ }
169
+ ],
170
+ "cookie" : [],
171
+ "body" : " Row #1\n Row #2\n Row #3\n Row #4\n "
172
+ }
173
+ ]
174
+ },
175
+ {
176
+ "name" : " Delete File" ,
177
+ "request" : {
178
+ "method" : " DELETE" ,
179
+ "header" : [],
180
+ "url" : {
181
+ "raw" : " {{proto}}://{{host}}:{{port}}/:file-system-path" ,
182
+ "protocol" : " {{proto}}" ,
183
+ "host" : [
184
+ " {{host}}"
185
+ ],
186
+ "port" : " {{port}}" ,
187
+ "path" : [
188
+ " :file-system-path"
189
+ ],
190
+ "variable" : [
191
+ {
192
+ "key" : " file-system-path" ,
193
+ "value" : " folder/file.txt"
194
+ }
195
+ ]
196
+ }
197
+ },
198
+ "response" : [
199
+ {
200
+ "name" : " Delete File" ,
201
+ "originalRequest" : {
202
+ "method" : " DELETE" ,
203
+ "header" : [],
204
+ "url" : {
205
+ "raw" : " {{proto}}://{{host}}:{{port}}/:file-system-path" ,
206
+ "protocol" : " {{proto}}" ,
207
+ "host" : [
208
+ " {{host}}"
209
+ ],
210
+ "port" : " {{port}}" ,
211
+ "path" : [
212
+ " :file-system-path"
213
+ ],
214
+ "variable" : [
215
+ {
216
+ "key" : " file-system-path" ,
217
+ "value" : " folder/file.txt"
218
+ }
219
+ ]
220
+ }
221
+ },
222
+ "status" : " OK" ,
223
+ "code" : 200 ,
224
+ "_postman_previewlanguage" : " json" ,
225
+ "header" : [
226
+ {
227
+ "key" : " Date" ,
228
+ "value" : " Sat, 16 Sep 2023 10:41:48 GMT"
229
+ },
230
+ {
231
+ "key" : " Content-Length" ,
232
+ "value" : " 0"
233
+ }
234
+ ],
235
+ "cookie" : [],
236
+ "body" : null
237
+ }
238
+ ]
239
+ }
240
+ ]
241
+ }
0 commit comments