LogicGoInfotechSpaces commited on
Commit
946867e
·
verified ·
1 Parent(s): c36680b

Delete Image_Colorization_API.postman_collection.json

Browse files
Image_Colorization_API.postman_collection.json DELETED
@@ -1,475 +0,0 @@
1
- {
2
- "info": {
3
- "_postman_id": "image-colorization-api-collection",
4
- "name": "Image Colorization API",
5
- "description": "Postman collection for Text-Guided Image Colorization API by LogicGo Infotech\n\nNote: Firebase App Check token (X-Firebase-AppCheck header) is optional for most endpoints. If you don't have a valid token, you can omit the header entirely - the API will work without it.",
6
- "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
7
- "_exporter_id": "logicgo-infotech"
8
- },
9
- "item": [
10
- {
11
- "name": "Health & Info",
12
- "item": [
13
- {
14
- "name": "Root",
15
- "request": {
16
- "method": "GET",
17
- "header": [],
18
- "url": {
19
- "raw": "{{base_url}}/",
20
- "host": [
21
- "{{base_url}}"
22
- ],
23
- "path": [
24
- ""
25
- ]
26
- },
27
- "description": "Root endpoint - API information"
28
- },
29
- "response": []
30
- },
31
- {
32
- "name": "Health Check",
33
- "request": {
34
- "method": "GET",
35
- "header": [],
36
- "url": {
37
- "raw": "{{base_url}}/health",
38
- "host": [
39
- "{{base_url}}"
40
- ],
41
- "path": [
42
- "health"
43
- ]
44
- },
45
- "description": "Check API health status"
46
- },
47
- "response": []
48
- }
49
- ],
50
- "description": "Health check and information endpoints"
51
- },
52
- {
53
- "name": "Authentication",
54
- "item": [
55
- {
56
- "name": "Register User",
57
- "request": {
58
- "method": "POST",
59
- "header": [
60
- {
61
- "key": "Content-Type",
62
- "value": "application/json"
63
- }
64
- ],
65
- "body": {
66
- "mode": "raw",
67
- "raw": "{\n \"email\": \"user@example.com\",\n \"password\": \"securePassword123\",\n \"display_name\": \"John Doe\"\n}",
68
- "options": {
69
- "raw": {
70
- "language": "json"
71
- }
72
- }
73
- },
74
- "url": {
75
- "raw": "{{base_url}}/auth/register",
76
- "host": [
77
- "{{base_url}}"
78
- ],
79
- "path": [
80
- "auth",
81
- "register"
82
- ]
83
- },
84
- "description": "Register a new user with email and password"
85
- },
86
- "response": []
87
- },
88
- {
89
- "name": "Login",
90
- "request": {
91
- "method": "POST",
92
- "header": [
93
- {
94
- "key": "Content-Type",
95
- "value": "application/json"
96
- }
97
- ],
98
- "body": {
99
- "mode": "raw",
100
- "raw": "{\n \"email\": \"user@example.com\",\n \"password\": \"securePassword123\"\n}",
101
- "options": {
102
- "raw": {
103
- "language": "json"
104
- }
105
- }
106
- },
107
- "url": {
108
- "raw": "{{base_url}}/auth/login",
109
- "host": [
110
- "{{base_url}}"
111
- ],
112
- "path": [
113
- "auth",
114
- "login"
115
- ]
116
- },
117
- "description": "Login with email and password. Returns ID token and refresh token."
118
- },
119
- "response": []
120
- },
121
- {
122
- "name": "Get Current User",
123
- "request": {
124
- "method": "GET",
125
- "header": [
126
- {
127
- "key": "Authorization",
128
- "value": "Bearer {{id_token}}",
129
- "type": "text"
130
- }
131
- ],
132
- "url": {
133
- "raw": "{{base_url}}/auth/me",
134
- "host": [
135
- "{{base_url}}"
136
- ],
137
- "path": [
138
- "auth",
139
- "me"
140
- ]
141
- },
142
- "description": "Get current authenticated user information"
143
- },
144
- "response": []
145
- },
146
- {
147
- "name": "Refresh Token",
148
- "request": {
149
- "method": "POST",
150
- "header": [
151
- {
152
- "key": "Content-Type",
153
- "value": "application/json"
154
- }
155
- ],
156
- "body": {
157
- "mode": "raw",
158
- "raw": "{\n \"refresh_token_param\": \"{{refresh_token}}\"\n}",
159
- "options": {
160
- "raw": {
161
- "language": "json"
162
- }
163
- }
164
- },
165
- "url": {
166
- "raw": "{{base_url}}/auth/refresh",
167
- "host": [
168
- "{{base_url}}"
169
- ],
170
- "path": [
171
- "auth",
172
- "refresh"
173
- ]
174
- },
175
- "description": "Refresh Firebase ID token using refresh token"
176
- },
177
- "response": []
178
- }
179
- ],
180
- "description": "Authentication endpoints"
181
- },
182
- {
183
- "name": "Image Operations",
184
- "item": [
185
- {
186
- "name": "Upload Image",
187
- "request": {
188
- "method": "POST",
189
- "header": [],
190
- "body": {
191
- "mode": "formdata",
192
- "formdata": [
193
- {
194
- "key": "file",
195
- "type": "file",
196
- "src": [],
197
- "description": "Image file to upload"
198
- },
199
- {
200
- "key": "user_id",
201
- "value": "{{user_id}}",
202
- "type": "text",
203
- "description": "User ID (optional)"
204
- },
205
- {
206
- "key": "category_id",
207
- "value": "69368fcd2e46bd68ae1889b2",
208
- "type": "text",
209
- "description": "Category ID (optional)"
210
- }
211
- ]
212
- },
213
- "url": {
214
- "raw": "{{base_url}}/upload",
215
- "host": [
216
- "{{base_url}}"
217
- ],
218
- "path": [
219
- "upload"
220
- ]
221
- },
222
- "description": "Upload an image file"
223
- },
224
- "response": []
225
- },
226
- {
227
- "name": "Colorize Image (Basic)",
228
- "request": {
229
- "method": "POST",
230
- "header": [],
231
- "body": {
232
- "mode": "formdata",
233
- "formdata": [
234
- {
235
- "key": "file",
236
- "type": "file",
237
- "src": [],
238
- "description": "Image file to colorize"
239
- },
240
- {
241
- "key": "user_id",
242
- "value": "{{user_id}}",
243
- "type": "text",
244
- "description": "User ID (optional)"
245
- },
246
- {
247
- "key": "category_id",
248
- "value": "69368fcd2e46bd68ae1889b2",
249
- "type": "text",
250
- "description": "Category ID (optional)"
251
- },
252
- {
253
- "key": "model",
254
- "value": "cco",
255
- "type": "text",
256
- "description": "Model type: 'gan', 'cco', 'cco-eccv16', 'cco-siggraph17' (optional)"
257
- }
258
- ]
259
- },
260
- "url": {
261
- "raw": "{{base_url}}/colorize",
262
- "host": [
263
- "{{base_url}}"
264
- ],
265
- "path": [
266
- "colorize"
267
- ]
268
- },
269
- "description": "Colorize an image using AI models"
270
- },
271
- "response": []
272
- },
273
- {
274
- "name": "Colorize Image (with appname)",
275
- "request": {
276
- "method": "POST",
277
- "header": [],
278
- "body": {
279
- "mode": "formdata",
280
- "formdata": [
281
- {
282
- "key": "file",
283
- "type": "file",
284
- "src": [],
285
- "description": "Image file to colorize"
286
- },
287
- {
288
- "key": "user_id",
289
- "value": "{{user_id}}",
290
- "type": "text",
291
- "description": "User ID (optional)"
292
- },
293
- {
294
- "key": "category_id",
295
- "value": "",
296
- "type": "text",
297
- "description": "Category ID (optional - will be fetched from collage-maker if appname='collage-maker')"
298
- },
299
- {
300
- "key": "model",
301
- "value": "cco",
302
- "type": "text",
303
- "description": "Model type: 'gan', 'cco', 'cco-eccv16', 'cco-siggraph17' (optional)"
304
- },
305
- {
306
- "key": "appname",
307
- "value": "collage-maker",
308
- "type": "text",
309
- "description": "App name (optional - if 'collage-maker', fetches category ID from collage-maker MongoDB)"
310
- }
311
- ]
312
- },
313
- "url": {
314
- "raw": "{{base_url}}/colorize",
315
- "host": [
316
- "{{base_url}}"
317
- ],
318
- "path": [
319
- "colorize"
320
- ]
321
- },
322
- "description": "Colorize an image with appname parameter. When appname='collage-maker', the system will automatically fetch the category ID from the collage-maker MongoDB collection (adminPanel.categories)."
323
- },
324
- "response": []
325
- },
326
- {
327
- "name": "Download Result",
328
- "request": {
329
- "method": "GET",
330
- "header": [],
331
- "url": {
332
- "raw": "{{base_url}}/download/{{result_id}}",
333
- "host": [
334
- "{{base_url}}"
335
- ],
336
- "path": [
337
- "download",
338
- "{{result_id}}"
339
- ]
340
- },
341
- "description": "Download colorized result by file ID"
342
- },
343
- "response": []
344
- },
345
- {
346
- "name": "Get Result File",
347
- "request": {
348
- "method": "GET",
349
- "header": [],
350
- "url": {
351
- "raw": "{{base_url}}/results/{{filename}}",
352
- "host": [
353
- "{{base_url}}"
354
- ],
355
- "path": [
356
- "results",
357
- "{{filename}}"
358
- ]
359
- },
360
- "description": "Get result file by filename (public endpoint)"
361
- },
362
- "response": []
363
- },
364
- {
365
- "name": "Get Uploaded File",
366
- "request": {
367
- "method": "GET",
368
- "header": [],
369
- "url": {
370
- "raw": "{{base_url}}/uploads/{{filename}}",
371
- "host": [
372
- "{{base_url}}"
373
- ],
374
- "path": [
375
- "uploads",
376
- "{{filename}}"
377
- ]
378
- },
379
- "description": "Get uploaded file by filename (public endpoint)"
380
- },
381
- "response": []
382
- },
383
- {
384
- "name": "Get Compressed File",
385
- "request": {
386
- "method": "GET",
387
- "header": [],
388
- "url": {
389
- "raw": "{{base_url}}/compressed/{{compressed_filename}}",
390
- "host": [
391
- "{{base_url}}"
392
- ],
393
- "path": [
394
- "compressed",
395
- "{{compressed_filename}}"
396
- ]
397
- },
398
- "description": "Get compressed result file by filename (public endpoint)"
399
- },
400
- "response": []
401
- }
402
- ],
403
- "description": "Image upload, colorization, and file retrieval endpoints"
404
- }
405
- ],
406
- "event": [
407
- {
408
- "listen": "prerequest",
409
- "script": {
410
- "type": "text/javascript",
411
- "exec": [
412
- ""
413
- ]
414
- }
415
- },
416
- {
417
- "listen": "test",
418
- "script": {
419
- "type": "text/javascript",
420
- "exec": [
421
- ""
422
- ]
423
- }
424
- }
425
- ],
426
- "variable": [
427
- {
428
- "key": "base_url",
429
- "value": "https://logicgoinfotechspaces-text-guided-image-colorization.hf.space",
430
- "type": "string"
431
- },
432
- {
433
- "key": "id_token",
434
- "value": "",
435
- "type": "string",
436
- "description": "Firebase ID token from login response"
437
- },
438
- {
439
- "key": "refresh_token",
440
- "value": "",
441
- "type": "string",
442
- "description": "Firebase refresh token from login response"
443
- },
444
- {
445
- "key": "app_check_token",
446
- "value": "",
447
- "type": "string",
448
- "description": "Firebase App Check token (optional)"
449
- },
450
- {
451
- "key": "user_id",
452
- "value": "",
453
- "type": "string",
454
- "description": "User ID for requests"
455
- },
456
- {
457
- "key": "result_id",
458
- "value": "",
459
- "type": "string",
460
- "description": "Result ID from colorize response"
461
- },
462
- {
463
- "key": "filename",
464
- "value": "",
465
- "type": "string",
466
- "description": "Filename for file retrieval"
467
- },
468
- {
469
- "key": "compressed_filename",
470
- "value": "",
471
- "type": "string",
472
- "description": "Compressed filename from colorize response"
473
- }
474
- ]
475
- }