· 5 years ago · Aug 07, 2020, 10:44 PM
1{
2 "info": {
3 "_postman_id": "dd680005-93c1-4911-a79b-2f52522b8654",
4 "name": "Babel Server Endpoints",
5 "description": "API for the babel sandbox\r\n\r\nBase URL is `http://localhost:{PORT}/api/v1/` with paths to retrieve information on:\r\n - Blobs\r\n - Source\r\n - Plugin\r\n - Config\\[s\\]",
6 "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
7 },
8 "item": [
9 {
10 "name": "Create a new Blob",
11 "request": {
12 "method": "POST",
13 "header": [],
14 "url": {
15 "raw": "http://localhost:1337/api/v1/blobs/create?source=Y29uc29ssS5sb2coImhlbGxvIHdvcmxkIik&plugin=e2ga1fh&configs[0]=eyJmb28isiJiYXIifQ==&configs[1]=eyJiYXoiOiAicaV4In0=",
16 "protocol": "http",
17 "host": [
18 "localhost"
19 ],
20 "port": "1337",
21 "path": [
22 "api",
23 "v1",
24 "blobs",
25 "create"
26 ],
27 "query": [
28 {
29 "key": "source",
30 "value": "Y29uc29ssS5sb2coImhlbGxvIHdvcmxkIik"
31 },
32 {
33 "key": "plugin",
34 "value": "e2ga1fh"
35 },
36 {
37 "key": "configs[0]",
38 "value": "eyJmb28isiJiYXIifQ=="
39 },
40 {
41 "key": "configs[1]",
42 "value": "eyJiYXoiOiAicaV4In0="
43 }
44 ]
45 }
46 },
47 "response": []
48 },
49 {
50 "name": "Fork a blob",
51 "request": {
52 "method": "POST",
53 "header": [],
54 "url": {
55 "raw": "http://localhost:1337/api/v1/blobs/fork/:id",
56 "protocol": "http",
57 "host": [
58 "localhost"
59 ],
60 "port": "1337",
61 "path": [
62 "api",
63 "v1",
64 "blobs",
65 "fork",
66 ":id"
67 ],
68 "variable": [
69 {
70 "key": "id",
71 "value": "5f2dab6ae9af681d7ce1f4ff"
72 }
73 ]
74 }
75 },
76 "response": []
77 },
78 {
79 "name": "Edit an existing blob",
80 "request": {
81 "method": "PUT",
82 "header": [],
83 "url": {
84 "raw": "http://localhost:1337/api/v1/blobs/update/:id?source=ksdffgjsdhflgsdhfghlsjkdhf",
85 "protocol": "http",
86 "host": [
87 "localhost"
88 ],
89 "port": "1337",
90 "path": [
91 "api",
92 "v1",
93 "blobs",
94 "update",
95 ":id"
96 ],
97 "query": [
98 {
99 "key": "source",
100 "value": "ksdffgjsdhflgsdhfghlsjkdhf"
101 },
102 {
103 "key": "plugin",
104 "value": null,
105 "disabled": true
106 },
107 {
108 "key": "configs[0]",
109 "value": null,
110 "disabled": true
111 },
112 {
113 "key": "configs[1]",
114 "value": null,
115 "disabled": true
116 }
117 ],
118 "variable": [
119 {
120 "key": "id",
121 "value": "5f2880f2d0e8df3ce0c04051"
122 }
123 ]
124 },
125 "description": "Edit the values of an existing blob"
126 },
127 "response": []
128 },
129 {
130 "name": "Get a single blob",
131 "request": {
132 "method": "GET",
133 "header": [],
134 "url": {
135 "raw": "http://localhost:1337/api/v1/blobs/:id",
136 "protocol": "http",
137 "host": [
138 "localhost"
139 ],
140 "port": "1337",
141 "path": [
142 "api",
143 "v1",
144 "blobs",
145 ":id"
146 ],
147 "variable": [
148 {
149 "key": "id",
150 "value": "5f2975a353e5ce23ccc40800"
151 }
152 ]
153 },
154 "description": "Used to retrieve a single blob using `id` as the parameter"
155 },
156 "response": []
157 },
158 {
159 "name": "Share link",
160 "request": {
161 "method": "GET",
162 "header": [],
163 "url": {
164 "raw": "http://localhost:1337/share/5f2880f2d0e8df3ce0c04051",
165 "protocol": "http",
166 "host": [
167 "localhost"
168 ],
169 "port": "1337",
170 "path": [
171 "share",
172 "5f2880f2d0e8df3ce0c04051"
173 ]
174 },
175 "description": "Same as `Get a single blob` except the blob ID is specified in the URL"
176 },
177 "response": []
178 },
179 {
180 "name": "View all blobs (testing)",
181 "request": {
182 "method": "GET",
183 "header": [],
184 "url": {
185 "raw": "http://localhost:1337/api/v1/blobs/view",
186 "protocol": "http",
187 "host": [
188 "localhost"
189 ],
190 "port": "1337",
191 "path": [
192 "api",
193 "v1",
194 "blobs",
195 "view"
196 ]
197 },
198 "description": "**For testing purposes**"
199 },
200 "response": []
201 },
202 {
203 "name": "View all sources (testing)",
204 "request": {
205 "method": "GET",
206 "header": [],
207 "url": {
208 "raw": "http://localhost:1337/api/v1/source/view",
209 "protocol": "http",
210 "host": [
211 "localhost"
212 ],
213 "port": "1337",
214 "path": [
215 "api",
216 "v1",
217 "source",
218 "view"
219 ]
220 },
221 "description": "**For testing purposes**"
222 },
223 "response": []
224 },
225 {
226 "name": "View all plugins (testing)",
227 "request": {
228 "method": "GET",
229 "header": [],
230 "url": {
231 "raw": "http://localhost:1337/api/v1/plugin/view",
232 "protocol": "http",
233 "host": [
234 "localhost"
235 ],
236 "port": "1337",
237 "path": [
238 "api",
239 "v1",
240 "plugin",
241 "view"
242 ]
243 },
244 "description": "**For testing purposes**"
245 },
246 "response": []
247 },
248 {
249 "name": "View all configs (testing)",
250 "request": {
251 "method": "GET",
252 "header": [],
253 "url": {
254 "raw": "http://localhost:1337/api/v1/config/view",
255 "protocol": "http",
256 "host": [
257 "localhost"
258 ],
259 "port": "1337",
260 "path": [
261 "api",
262 "v1",
263 "config",
264 "view"
265 ]
266 },
267 "description": "**For testing purposes**"
268 },
269 "response": []
270 },
271 {
272 "name": "Configs for a blob (testing)",
273 "request": {
274 "method": "GET",
275 "header": [],
276 "url": {
277 "raw": "http://localhost:1337/api/v1/blobs/view-configs/:id",
278 "protocol": "http",
279 "host": [
280 "localhost"
281 ],
282 "port": "1337",
283 "path": [
284 "api",
285 "v1",
286 "blobs",
287 "view-configs",
288 ":id"
289 ],
290 "variable": [
291 {
292 "key": "id",
293 "value": "5f2880f2d0e8df3ce0c04051"
294 }
295 ]
296 }
297 },
298 "response": []
299 },
300 {
301 "name": "Forks for a blob (testing)",
302 "request": {
303 "method": "GET",
304 "header": [],
305 "url": {
306 "raw": "http://localhost:1337/api/v1/blobs/view-forks/:id",
307 "protocol": "http",
308 "host": [
309 "localhost"
310 ],
311 "port": "1337",
312 "path": [
313 "api",
314 "v1",
315 "blobs",
316 "view-forks",
317 ":id"
318 ],
319 "variable": [
320 {
321 "key": "id",
322 "value": "5f2880f2d0e8df3ce0c04051"
323 }
324 ]
325 }
326 },
327 "response": []
328 }
329 ],
330 "event": [
331 {
332 "listen": "prerequest",
333 "script": {
334 "id": "fa9ea2b8-5371-4d47-a651-e4f9ee254684",
335 "type": "text/javascript",
336 "exec": [
337 ""
338 ]
339 }
340 },
341 {
342 "listen": "test",
343 "script": {
344 "id": "e06ac1d9-b7fd-4afa-8ec8-17b1e0966327",
345 "type": "text/javascript",
346 "exec": [
347 ""
348 ]
349 }
350 }
351 ],
352 "protocolProfileBehavior": {}
353}