· 5 years ago · Aug 03, 2020, 09: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": "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/get-blob/:id",
148 "protocol": "http",
149 "host": [
150 "localhost"
151 ],
152 "port": "1337",
153 "path": [
154 "api",
155 "v1",
156 "blobs",
157 "get-blob",
158 ":id"
159 ],
160 "variable": [
161 {
162 "key": "id",
163 "value": "5f283952cb86992fd4e67249"
164 }
165 ]
166 },
167 "description": "Used to retrieve a single blob using `id` as the parameter"
168 },
169 "response": []
170 },
171 {
172 "name": "Share link",
173 "request": {
174 "method": "GET",
175 "header": [],
176 "url": {
177 "raw": "http://localhost:1337/share/5f2880f2d0e8df3ce0c04051",
178 "protocol": "http",
179 "host": [
180 "localhost"
181 ],
182 "port": "1337",
183 "path": [
184 "share",
185 "5f2880f2d0e8df3ce0c04051"
186 ]
187 },
188 "description": "Same as `Get a single blob` except the blob ID is specified in the URL"
189 },
190 "response": []
191 }
192 ],
193 "event": [
194 {
195 "listen": "prerequest",
196 "script": {
197 "id": "fa9ea2b8-5371-4d47-a651-e4f9ee254684",
198 "type": "text/javascript",
199 "exec": [
200 ""
201 ]
202 }
203 },
204 {
205 "listen": "test",
206 "script": {
207 "id": "e06ac1d9-b7fd-4afa-8ec8-17b1e0966327",
208 "type": "text/javascript",
209 "exec": [
210 ""
211 ]
212 }
213 }
214 ],
215 "protocolProfileBehavior": {}
216}