· 5 years ago · Aug 07, 2020, 06:10 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": "View all blobs",
51 "request": {
52 "method": "GET",
53 "header": [],
54 "url": {
55 "raw": "http://localhost:1337/api/v1/blobs/view",
56 "protocol": "http",
57 "host": [
58 "localhost"
59 ],
60 "port": "1337",
61 "path": [
62 "api",
63 "v1",
64 "blobs",
65 "view"
66 ]
67 },
68 "description": "**For testing purposes**"
69 },
70 "response": []
71 },
72 {
73 "name": "View all sources",
74 "request": {
75 "method": "GET",
76 "header": [],
77 "url": {
78 "raw": "http://localhost:1337/api/v1/source/view",
79 "protocol": "http",
80 "host": [
81 "localhost"
82 ],
83 "port": "1337",
84 "path": [
85 "api",
86 "v1",
87 "source",
88 "view"
89 ]
90 },
91 "description": "**For testing purposes**"
92 },
93 "response": []
94 },
95 {
96 "name": "View all plugins",
97 "request": {
98 "method": "GET",
99 "header": [],
100 "url": {
101 "raw": "http://localhost:1337/api/v1/plugin/view",
102 "protocol": "http",
103 "host": [
104 "localhost"
105 ],
106 "port": "1337",
107 "path": [
108 "api",
109 "v1",
110 "plugin",
111 "view"
112 ]
113 },
114 "description": "**For testing purposes**"
115 },
116 "response": []
117 },
118 {
119 "name": "View all configs",
120 "request": {
121 "method": "GET",
122 "header": [],
123 "url": {
124 "raw": "http://localhost:1337/api/v1/config/view",
125 "protocol": "http",
126 "host": [
127 "localhost"
128 ],
129 "port": "1337",
130 "path": [
131 "api",
132 "v1",
133 "config",
134 "view"
135 ]
136 },
137 "description": "**For testing purposes**"
138 },
139 "response": []
140 },
141 {
142 "name": "Get a single blob",
143 "request": {
144 "method": "GET",
145 "header": [],
146 "url": {
147 "raw": "http://localhost:1337/api/v1/blobs/:id",
148 "protocol": "http",
149 "host": [
150 "localhost"
151 ],
152 "port": "1337",
153 "path": [
154 "api",
155 "v1",
156 "blobs",
157 ":id"
158 ],
159 "variable": [
160 {
161 "key": "id",
162 "value": "5f2975a353e5ce23ccc40800"
163 }
164 ]
165 },
166 "description": "Used to retrieve a single blob using `id` as the parameter"
167 },
168 "response": []
169 },
170 {
171 "name": "Share link",
172 "request": {
173 "method": "GET",
174 "header": [],
175 "url": {
176 "raw": "http://localhost:1337/share/5f2880f2d0e8df3ce0c04051",
177 "protocol": "http",
178 "host": [
179 "localhost"
180 ],
181 "port": "1337",
182 "path": [
183 "share",
184 "5f2880f2d0e8df3ce0c04051"
185 ]
186 },
187 "description": "Same as `Get a single blob` except the blob ID is specified in the URL"
188 },
189 "response": []
190 },
191 {
192 "name": "Fork a blob",
193 "request": {
194 "method": "GET",
195 "header": [],
196 "url": {
197 "raw": "http://localhost:1337/api/v1/blobs/fork/:id",
198 "protocol": "http",
199 "host": [
200 "localhost"
201 ],
202 "port": "1337",
203 "path": [
204 "api",
205 "v1",
206 "blobs",
207 "fork",
208 ":id"
209 ],
210 "variable": [
211 {
212 "key": "id",
213 "value": ""
214 }
215 ]
216 }
217 },
218 "response": []
219 },
220 {
221 "name": "Get all configs for a blob",
222 "request": {
223 "method": "GET",
224 "header": [],
225 "url": {
226 "raw": "http://localhost:1337/api/v1/blobs/view-configs/:id",
227 "protocol": "http",
228 "host": [
229 "localhost"
230 ],
231 "port": "1337",
232 "path": [
233 "api",
234 "v1",
235 "blobs",
236 "view-configs",
237 ":id"
238 ],
239 "variable": [
240 {
241 "key": "id",
242 "value": ""
243 }
244 ]
245 }
246 },
247 "response": []
248 },
249 {
250 "name": "Get all forks for a blob",
251 "request": {
252 "method": "GET",
253 "header": [],
254 "url": {
255 "raw": "http://localhost:1337/api/v1/blobs/view-forks/:id",
256 "protocol": "http",
257 "host": [
258 "localhost"
259 ],
260 "port": "1337",
261 "path": [
262 "api",
263 "v1",
264 "blobs",
265 "view-forks",
266 ":id"
267 ],
268 "variable": [
269 {
270 "key": "id",
271 "value": ""
272 }
273 ]
274 }
275 },
276 "response": []
277 },
278 {
279 "name": "Edit an existing blob",
280 "request": {
281 "method": "PUT",
282 "header": [],
283 "url": {
284 "raw": "http://localhost:1337/api/v1/blobs/update/:id",
285 "protocol": "http",
286 "host": [
287 "localhost"
288 ],
289 "port": "1337",
290 "path": [
291 "api",
292 "v1",
293 "blobs",
294 "update",
295 ":id"
296 ],
297 "variable": [
298 {
299 "key": "id",
300 "value": ""
301 }
302 ]
303 },
304 "description": "Edit the values of an existing blob"
305 },
306 "response": []
307 }
308 ],
309 "event": [
310 {
311 "listen": "prerequest",
312 "script": {
313 "id": "fa9ea2b8-5371-4d47-a651-e4f9ee254684",
314 "type": "text/javascript",
315 "exec": [
316 ""
317 ]
318 }
319 },
320 {
321 "listen": "test",
322 "script": {
323 "id": "e06ac1d9-b7fd-4afa-8ec8-17b1e0966327",
324 "type": "text/javascript",
325 "exec": [
326 ""
327 ]
328 }
329 }
330 ],
331 "protocolProfileBehavior": {}
332}