-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhermes_api_tests
More file actions
executable file
·25 lines (15 loc) · 1.04 KB
/
hermes_api_tests
File metadata and controls
executable file
·25 lines (15 loc) · 1.04 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
#HERMES AI-Based Component API
## Test to query the knowledge base
```
curl -X GET http://80.211.238.135:8080/knowledge/topics -H 'Content-Type: application/json'
```
```
curl -X POST http://80.211.238.135:8080/knowledge/entities2topic -H 'Content-Type: application/json' -d '{"uri":"http://www.istc.cnr.it/pstlab/ontologies/2023/1/hermes#Barocco"}'
```
```
curl -X POST http://80.211.238.135:8080/knowledge/descriptions -H 'Content-Type: application/json' -d '{"uri":"http://www.istc.cnr.it/pstlab/ontologies/2023/1/hermes#Basilica_di_S._Martino_ai_Monti"}'
```
## Test to query the planner
```
curl -X POST http://80.211.238.135:8080/planner/trip -H 'Content-Type: application/json' -d '{"userId":"test", "duration":180, "userLocation":[0.8, 1.23, 3.45, 2.11], "groupSize":5, "dVector":[false, false, false], "mVector":[true, false, false], "topics": [{"id":"http://www.istc.cnr.it/pstlab/ontologies/2023/1/hermes#Barocco", "label":"Barocco"},{"id":"http://www.istc.cnr.it/pstlab/ontologies/2023/1/hermes#Medioevo", "label":"Medioevo"}]}'
```