-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathintegration.json
More file actions
86 lines (81 loc) · 2.15 KB
/
Copy pathintegration.json
File metadata and controls
86 lines (81 loc) · 2.15 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
curl -X POST http://localhost:18080/schemas \
-H "Content-Type: application/json" \
-d '{
"schema_id": "sc_11",
"name": "Social Simulations 11 JM",
"version": "1.0.0",
"description": "Social Simulations 11 JM",
"json_schema": {
"type": "object",
"properties": {
"pozo": {
"type": "string",
"description": "Unique sensor identifier"
},
},
"required": ["pozo"]
}
}'
curl -X POST http://localhost:18080/schemas \
-H "Content-Type: application/json" \
-d '{
"schema_id": "Social0_Simulations_11_JM",
"name": "Social Simulations 11 JM",
"version": "1.1.1",
"description": "Social Simulations 11 JM 2",
"json_schema": {
"type": "object",
"properties": {
"model_id": {
"type": "string"
},
"pozo": {
"type": "number",
"description": "Pozo"
},
"agenti": {
"type": "object",
"properties": {
"agent_id": {"type": "number"},
"conf": {"type": "number"},
"repu": {"type": "number"},
"reci": {"type": "number"},
"rho": {"type": "number"}
}
},
"agentj": {
"type": "object",
"properties": {
"agent_id": {"type": "number"},
"conf": {"type": "number"},
"repu": {"type": "number"},
"reci": {"type": "number"},
"rho": {"type": "number"}
}
}
},
"required": ["model_id", "pozo", "agenti", "agentj"]
}
}'
curl -X POST http://localhost:18080/dynamic-data \
-H "Content-Type: application/json" \
-d '{
"schema_id": "Social0_Simulations_11_JM",
"data": {
"model_id": "0002-887x",
"pozo": 2.56,
"agenti": {
"agent_id": 1,
"conf": 0.56,
"repu": 0.36,
"reci": 0.46
},
"agentj": {
"agent_id": 2,
"conf": 0.57,
"repu": 0.37,
"reci": 0.47
}
}
}'
curl http://localhost:18080/dynamic-data?schema_id=Social0_Simulations_11_JM&limit=50