-
Notifications
You must be signed in to change notification settings - Fork 0
/
postman_API
71 lines (71 loc) · 1.78 KB
/
postman_API
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{
"info": {
"name": "Image Processing Service API",
"description": "Collection for testing the Image Processing Service APIs",
"_postman_id": "unique-postman-id",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Upload CSV",
"request": {
"url": "http://localhost:3000/api/upload",
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "csv",
"type": "file",
"src": []
}
]
},
"description": "Upload a CSV file for processing"
},
"response": []
},
{
"name": "Check Status",
"request": {
"url": "http://localhost:3000/api/status/{{requestId}}",
"method": "GET",
"header": [],
"description": "Check the status of a processing request"
},
"response": []
},
{
"name": "Webhook (Bonus)",
"request": {
"url": "http://localhost:3000/api/webhook/request/:requestId",
"method": "POST",
"header": [
{
"key": "Content-Type",
"value": "application/json"
}
],
"body": {
"mode": "raw",
"raw": "{\n \"requestId\": \"{{requestId}}\",\n \"status\": \"completed\",\n \"outputCsvUrl\": \"https://example.com/output.csv\"\n}"
},
"description": "Webhook endpoint for receiving processing updates"
},
"response": []
}
],
"variable": [
{
"key": "base_url",
"value": "http://localhost:3000",
"type": "string"
},
{
"key": "requestId",
"value": "your-request-id-here",
"type": "string"
}
]
}