-
Notifications
You must be signed in to change notification settings - Fork 0
/
TechChallenge01.postman_collection.json
114 lines (114 loc) · 1.89 KB
/
TechChallenge01.postman_collection.json
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
108
109
110
111
112
113
114
{
"info": {
"_postman_id": "df227689-3d17-49b8-994c-ee08c5096d99",
"name": "TechChallenge01",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
"_exporter_id": "1179079"
},
"item": [
{
"name": "Upload CSV",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "file",
"type": "file"
}
]
},
"url": {
"raw": "127.0.0.1:8000/upload-csv",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"upload-csv"
]
}
},
"response": []
},
{
"name": "Train Model",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "127.0.0.1:8000/train/1",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"train",
"1"
]
}
},
"response": []
},
{
"name": "Report",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "127.0.0.1:8000/report/2",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"report",
"2"
]
}
},
"response": []
},
{
"name": "Predict",
"request": {
"method": "POST",
"header": [],
"body": {
"mode": "raw",
"raw": "{\n \"file_id\": 2,\n \"subject\": {\n \"age\": 89,\n \"gender\": \"female\",\n \"bmi\": 31.258142158673422,\n \"children\": 0,\n \"smoker\": \"yes\",\n \"region\": \"southest\"\n }\n}",
"options": {
"raw": {
"language": "json"
}
}
},
"url": {
"raw": "127.0.0.1:8000/predict",
"host": [
"127",
"0",
"0",
"1"
],
"port": "8000",
"path": [
"predict"
]
}
},
"response": []
}
]
}