Skip to content

Integration service using Spring Boot, Apache Camel and RestTemplate

License

Notifications You must be signed in to change notification settings

avanishbharati/DateDifferenceService

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Integration service using Spring Boot, Apache Camel and RestTemplate

This project demonstrates how to use Spring Boot, Apache Camel, RestTemplate and date manipulation methods to process data. Data is processable using folder location and a RESTful end point. The emphasis is put on using Non-SDK techniques to get the number of days between the two given date values. For future development, data could be retrieved/transported async using ActiveMq.

Data format

This project reads data in a file of the format:

DD MM YYYY, DD MM YYYY

and process the date out in the following format difference:

DD MM YYYY, DD MM YYYY, difference

See data/in/sample.txt and data/out/sample.txt

build package

mvn clean package

Run locally

Run command spring-boot:run

  1. place valid file in data/in
  2. see result data/out

Swagger

Run locally and go to http://localhost:8080/datevalidationservice/swagger-ui

Reference Documentation

Built With

Authors

  • Avanish Bharati