Skip to content

Commit 85a76be

Browse files
author
sol
committed
Added file upload
1 parent 4dab750 commit 85a76be

3 files changed

Lines changed: 512 additions & 21 deletions

File tree

apis/universal-data-format-converter-postman.json

Lines changed: 267 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"info": {
33
"name": "Universal Data Format Converter API",
4-
"description": "Full collection for all format conversions. Set rapidapi_key in collection variables.",
4+
"description": "Full collection for all format conversions (JSON body + file upload). Set rapidapi_key in collection variables.",
55
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
66
},
77
"variable": [
@@ -12,6 +12,272 @@
1212
}
1313
],
1414
"item": [
15+
{
16+
"name": "File upload (multipart)",
17+
"description": "Send a file; input format is inferred from extension. Add form field \"to\" for output format. Optionally \"options\" (JSON string) and \"download=1\".",
18+
"item": [
19+
{
20+
"name": "File (any) → JSON",
21+
"request": {
22+
"method": "POST",
23+
"header": [
24+
{
25+
"key": "Accept",
26+
"value": "application/json"
27+
},
28+
{
29+
"key": "x-rapidapi-key",
30+
"value": "{{rapidapi_key}}",
31+
"type": "text"
32+
},
33+
{
34+
"key": "x-rapidapi-host",
35+
"value": "universal-data-format-converter.p.rapidapi.com",
36+
"type": "text"
37+
}
38+
],
39+
"body": {
40+
"mode": "formdata",
41+
"formdata": [
42+
{
43+
"key": "file",
44+
"type": "file",
45+
"src": "",
46+
"description": "Select a file (.xlsx, .csv, .json, etc.). Input format is inferred from filename."
47+
},
48+
{
49+
"key": "to",
50+
"value": "json",
51+
"type": "text",
52+
"description": "Output format"
53+
}
54+
]
55+
},
56+
"url": {
57+
"raw": "https://universal-data-format-converter.p.rapidapi.com/convert",
58+
"protocol": "https",
59+
"host": [
60+
"universal-data-format-converter",
61+
"p",
62+
"rapidapi",
63+
"com"
64+
],
65+
"path": [
66+
"convert"
67+
]
68+
}
69+
}
70+
},
71+
{
72+
"name": "File (any) → CSV",
73+
"request": {
74+
"method": "POST",
75+
"header": [
76+
{
77+
"key": "Accept",
78+
"value": "text/csv"
79+
},
80+
{
81+
"key": "x-rapidapi-key",
82+
"value": "{{rapidapi_key}}",
83+
"type": "text"
84+
},
85+
{
86+
"key": "x-rapidapi-host",
87+
"value": "universal-data-format-converter.p.rapidapi.com",
88+
"type": "text"
89+
}
90+
],
91+
"body": {
92+
"mode": "formdata",
93+
"formdata": [
94+
{
95+
"key": "file",
96+
"type": "file",
97+
"src": "",
98+
"description": "Select a file (.xlsx, .csv, .json, etc.). Input format is inferred from filename."
99+
},
100+
{
101+
"key": "to",
102+
"value": "csv",
103+
"type": "text",
104+
"description": "Output format"
105+
}
106+
]
107+
},
108+
"url": {
109+
"raw": "https://universal-data-format-converter.p.rapidapi.com/convert",
110+
"protocol": "https",
111+
"host": [
112+
"universal-data-format-converter",
113+
"p",
114+
"rapidapi",
115+
"com"
116+
],
117+
"path": [
118+
"convert"
119+
]
120+
}
121+
}
122+
},
123+
{
124+
"name": "File (any) → Excel",
125+
"request": {
126+
"method": "POST",
127+
"header": [
128+
{
129+
"key": "Accept",
130+
"value": "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
131+
},
132+
{
133+
"key": "x-rapidapi-key",
134+
"value": "{{rapidapi_key}}",
135+
"type": "text"
136+
},
137+
{
138+
"key": "x-rapidapi-host",
139+
"value": "universal-data-format-converter.p.rapidapi.com",
140+
"type": "text"
141+
}
142+
],
143+
"body": {
144+
"mode": "formdata",
145+
"formdata": [
146+
{
147+
"key": "file",
148+
"type": "file",
149+
"src": "",
150+
"description": "Select a file (.xlsx, .csv, .json, etc.). Input format is inferred from filename."
151+
},
152+
{
153+
"key": "to",
154+
"value": "excel",
155+
"type": "text",
156+
"description": "Output format"
157+
}
158+
]
159+
},
160+
"url": {
161+
"raw": "https://universal-data-format-converter.p.rapidapi.com/convert",
162+
"protocol": "https",
163+
"host": [
164+
"universal-data-format-converter",
165+
"p",
166+
"rapidapi",
167+
"com"
168+
],
169+
"path": [
170+
"convert"
171+
]
172+
}
173+
}
174+
},
175+
{
176+
"name": "File (any) → PDF",
177+
"request": {
178+
"method": "POST",
179+
"header": [
180+
{
181+
"key": "Accept",
182+
"value": "application/pdf"
183+
},
184+
{
185+
"key": "x-rapidapi-key",
186+
"value": "{{rapidapi_key}}",
187+
"type": "text"
188+
},
189+
{
190+
"key": "x-rapidapi-host",
191+
"value": "universal-data-format-converter.p.rapidapi.com",
192+
"type": "text"
193+
}
194+
],
195+
"body": {
196+
"mode": "formdata",
197+
"formdata": [
198+
{
199+
"key": "file",
200+
"type": "file",
201+
"src": "",
202+
"description": "Select a file (.xlsx, .csv, .json, etc.). Input format is inferred from filename."
203+
},
204+
{
205+
"key": "to",
206+
"value": "pdf",
207+
"type": "text",
208+
"description": "Output format"
209+
}
210+
]
211+
},
212+
"url": {
213+
"raw": "https://universal-data-format-converter.p.rapidapi.com/convert",
214+
"protocol": "https",
215+
"host": [
216+
"universal-data-format-converter",
217+
"p",
218+
"rapidapi",
219+
"com"
220+
],
221+
"path": [
222+
"convert"
223+
]
224+
}
225+
}
226+
},
227+
{
228+
"name": "File (any) → XML",
229+
"request": {
230+
"method": "POST",
231+
"header": [
232+
{
233+
"key": "Accept",
234+
"value": "application/xml"
235+
},
236+
{
237+
"key": "x-rapidapi-key",
238+
"value": "{{rapidapi_key}}",
239+
"type": "text"
240+
},
241+
{
242+
"key": "x-rapidapi-host",
243+
"value": "universal-data-format-converter.p.rapidapi.com",
244+
"type": "text"
245+
}
246+
],
247+
"body": {
248+
"mode": "formdata",
249+
"formdata": [
250+
{
251+
"key": "file",
252+
"type": "file",
253+
"src": "",
254+
"description": "Select a file (.xlsx, .csv, .json, etc.). Input format is inferred from filename."
255+
},
256+
{
257+
"key": "to",
258+
"value": "xml",
259+
"type": "text",
260+
"description": "Output format"
261+
}
262+
]
263+
},
264+
"url": {
265+
"raw": "https://universal-data-format-converter.p.rapidapi.com/convert",
266+
"protocol": "https",
267+
"host": [
268+
"universal-data-format-converter",
269+
"p",
270+
"rapidapi",
271+
"com"
272+
],
273+
"path": [
274+
"convert"
275+
]
276+
}
277+
}
278+
}
279+
]
280+
},
15281
{
16282
"name": "From json",
17283
"item": [

0 commit comments

Comments
 (0)