Camel Restlet and JDBC usage example
Java
Latest commit 69185f6 Jun 3, 2015 @bibryam Merge pull request #5 from inakigarcia/master
Avoid error when running in Tomcat standalone generated war file
Permalink
Failed to load latest commit information.
src/main
.gitignore
README
pom.xml

README

Camel Restlet and JDBC example
=======================================

An example which shows how to expose CRUD operations with REST interface and JDBC implementation

Compile: mvn clean install
Run the application:

mvn jetty:run

or to use java DSL use
mvn jetty:run -Dimpl=java-dsl

To create an user, make a http POST request with firstName and lastName parameters
curl -d "firstName=test&lastName=user" http://localhost:8080/rs/user/

To update an existing user, make a http PUT request with firstName and lastName parameters
curl -X PUT -d "firstName=updated&lastName=user" http://localhost:8080/rs/user/2

To retrieve an existing user, make a http GET request with the userId as part of the url
curl -X GET  http://localhost:8080/rs/user/0

To delete an existing user, make a http DELETE request with the userId as part of the url
curl -X DELETE  http://localhost:8080/rs/user/0

To retrieve all the existing users, make a http GET request to users url
curl -X GET  http://localhost:8080/rs/users