forked from FuseByExample/rest-dsl-in-action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathuseful_cmds.txt
33 lines (24 loc) · 1.06 KB
/
useful_cmds.txt
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
# JBoss Fuse
shell:source mvn:org.jboss.fuse/deployment/1.0/script/install
fabric:container-list
fabric:container-remove-profile demo gpe-fuse
fabric:container-add-profile demo gpe-fuse
# Deploy profile
cd routing
mvn fabric8:deploy
# Create ES index and Data Model
http PUT http://localhost:9200/blog
http PUT http://localhost:9200/blog/_mapping/article < data/elasticsearch/mapping.json
http http://localhost:9200/blog/_mapping/article
# Create Kibana Dashboard
http PUT http://localhost:9200/kibana-int/dashboard/fusedemo < data/elasticsearch/dashboard.json
cd kibana
mvn exec:java
# Queries
http DELETE http://localhost:8183/camel-rest/blog/article/0
http PUT http://localhost:8183/camel-rest/blog/article < data/elasticsearch/entry.json
http http://localhost:8183/camel-rest/blog/article/search/id/0
http http://localhost:8183/camel-rest/blog/article/search/user/cmoulliard
http http://localhost:8183/camel-rest/blog/article/search/user/cmoullia
http DELETE http://localhost:8183/camel-rest/blog/article/0
http http://localhost:8183/camel-rest/blog/article/search/id/0