-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.http
46 lines (34 loc) · 2.01 KB
/
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
POST http://127.0.0.1:8000/transformer/pipe_create HTTP/1.1
content-type: application/json
{
"data_url" : "https://justicehub.in/dataset/a51492b5-58ba-471e-94d1-8064c2d92238/resource/6dba3a17-384a-49c4-8ed6-bdfea9ea47e3/download/summer-of-data-meghalaya-high-court-datasheet.csv",
"name": "Test pipeline n1",
"transformers_list" : [{"name" : "skip_column", "order_no" : 1, "context": {"columns":["Gender", "Religion"]}},
{"name" : "skip_column", "order_no" : 1, "context": {"columns":["Caste"]}},
{"name" : "merge_columns", "order_no" : 1, "context": {"column1":"Gender", "column2":"Caste", "output_column":"Gen_cast",
"separator":"|"}}]
}
POST http://127.0.0.1:8000/transformer/pipe_create
content-type: application/json
{
"data_url" : "https://justicehub.in/dataset/a51492b5-58ba-471e-94d1-8064c2d92238/resource/6dba3a17-384a-49c4-8ed6-bdfea9ea47e3/download/summer-of-data-meghalaya-high-court-datasheet.csv",
"name": "Test pipeline n1",
"transformers_list" : [{"name" : "change_format", "order_no" : 1, "context": {"format" : "xml"}}
}
POST https://pipeline.ndp.civicdatalab.in/transformer/res_transform HTTP/1.1
content-type: application/json
{
"res_id" : 10,
"transformers_list" : [{"name" : "skip_column", "order_no" : 1, "context": {"columns":["Gender", "Religion"]}},
{"name" : "skip_column", "order_no" : 1, "context": {"columns":["Caste"]}},
{"name" : "merge_columns", "order_no" : 1, "context": {"column1":"Gender", "column2":"Caste", "output_column":"Gen_cast",
"separator":"|"}}]
}
POST http://127.0.0.1:8000/transformer/custom_data_viewer
content-type: application/json
{
"data_url" : "https://justicehub.in/dataset/a51492b5-58ba-471e-94d1-8064c2d92238/resource/6dba3a17-384a-49c4-8ed6-bdfea9ea47e3/download/summer-of-data-meghalaya-high-court-datasheet.csv",
"columns": ["Ages", "Gender", "Religions", "Hindu", "Religion", "Chamber Details"],
"rows" : "29"
}
###