-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.http
56 lines (46 loc) · 979 Bytes
/
test.http
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
GET http://0.0.0.0:8080/status
Accept: application/json
###
POST http://0.0.0.0:8080/train
Accept: application/json
{
"project_id": "0cba82ff-9790-454d-b7b9-22570e7ba28c",
"code_hash": "8c2f3d3c5dd853231c7429b099347d13c8bb2c37",
"pipeline_config": [
{
"data": {
"location": {
"source": "gcs://test/train.csv"
},
"prep_config": {}
},
"model": {
"hyperparameters": {},
"version": "v1"
}
}
]
}
###
POST http://0.0.0.0:8080/predict
Accept: application/json
{
"project_id": "0cba82ff-9790-454d-b7b9-22570e7ba28c",
"train_id": "8d9f7a7d-14ab-42fc-afe4-e1c3ecfc3524",
"pipeline_config": [
{
"data": {
"location": {
"source": "gcs://test/test.csv",
"destination": "gcs://test/test_output.csv"
}
}
}
]
}
###
GET http://0.0.0.0:8080/train
Accept: application/json
###
GET http://0.0.0.0:8080/predict
Accept: application/json