-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPostman_Collection.json
More file actions
107 lines (107 loc) · 2.4 KB
/
Postman_Collection.json
File metadata and controls
107 lines (107 loc) · 2.4 KB
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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
{
"info": {
"name": "Qunomedical API",
"description": "Patient events API with CSV processing capabilities. Note: requests to /api are rate-limited and the server enforces body size limits.",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "Health Check",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{base_url}}/api/health",
"host": [
"{{base_url}}"
],
"path": [
"api",
"health"
]
},
"description": "Check if the API is running"
},
"response": []
},
{
"name": "Upload CSV",
"request": {
"method": "POST",
"header": [
{
"key": "x-api-key",
"value": "{{api_key}}",
"type": "text"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "file",
"type": "file",
"src": "path/to/your/file.csv",
"disabled": false
}
]
},
"url": {
"raw": "{{base_url}}/api/upload",
"host": [
"{{base_url}}"
],
"path": [
"api",
"upload"
]
},
"description": "Upload a CSV file for processing. Returns a jobId for tracking progress."
},
"response": []
},
{
"name": "Get Job Status",
"request": {
"method": "GET",
"header": [
{
"key": "x-api-key",
"value": "{{api_key}}",
"type": "text"
}
],
"url": {
"raw": "{{base_url}}/api/status/{{jobId}}",
"host": [
"{{base_url}}"
],
"path": [
"api",
"status",
"{{jobId}}"
]
},
"description": "Check the status of a CSV processing job using the jobId returned from the upload endpoint"
},
"response": []
}
],
"variable": [
{
"key": "base_url",
"value": "http://localhost:3000",
"type": "string"
},
{
"key": "api_key",
"value": "your-secret-api-key-12345",
"type": "string"
},
{
"key": "jobId",
"value": "",
"type": "string"
}
]
}