Skip to content

albertoolivan/rest-consumer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rest-consumer

rest-consumer is a common rest wich function is connect to a eureka server-registry and call rest-producer.

  1. Pre requirement - install rest-dto-1.0.0-SNAPSHOT.jar

https://github.com/albertoolivan/ch.rest.dto.git $ mvn install

  1. Maven install to get rest-consumer-1.0.0-SNAPSHOT.jar

$ mvn install

  1. Create a docker image rest-producer

$ docker build -t rest-consumer .

  1. Execute docker container

$ docker run -p 8082:8082 rest-consumer

  1. Test in browser (need service-registry and rest-producer up)

http://localhost:8082/city/all http://localhost:8082/city/info/MAD http://localhost:8082/find-itinerary-short?cityOriginId=MAD&cityDestinationId=BER&departureTime=2019-07-10T01:30:00.000Z http://localhost:8082/find-itinerary-less?cityOriginId=MAD&cityDestinationId=BER&departureTime=2019-07-10T01:30:00.000Z

  1. Swagger Rest doc

http://localhost:8082/swagger-ui.html

See eureka-dijkstra for more info

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published