https://github.com/alainpham/techlab-velocity-jsonpath-templating
How to use JsonPath in Velocity Templates in order to have a powerfull json templating / mapping tool in Fuse (Camel).
https://github.com/alainpham/techlab-velocity-jsonpath-templating
Last synced: 2 months ago
JSON representation
How to use JsonPath in Velocity Templates in order to have a powerfull json templating / mapping tool in Fuse (Camel).
- Host: GitHub
- URL: https://github.com/alainpham/techlab-velocity-jsonpath-templating
- Owner: alainpham
- Created: 2017-11-30T11:13:26.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-30T11:13:52.000Z (over 7 years ago)
- Last Synced: 2025-01-27T07:42:21.864Z (4 months ago)
- Language: Java
- Size: 2.93 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: ReadMe.txt
Awesome Lists containing this project
README
techlab-velocity-jsonpath-templating
=========================================This project aims at showing how to use JsonPath with Velocity Templates in order to have a powerfull json templating tool in Fuse(Camel).
The main idea is to wrap a producer endpoint in a Bean thats able to execute the camel-jsonpath component and be able to call it whithin the velocity template.
To build this project use
mvn install
To run the project you can execute the following Maven goal
mvn camel:run
For more help see the Apache Camel documentation
http://camel.apache.org/
To run a test:
curl -X POST \
http://localhost:7123/ \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{ "list" : [{ "key" : "ttt", "val" : 1 }, {"key" : 4} ]}'