Skip to content

Example of using Feign as a Rest Client with Spring Cloud and Angular JS

Notifications You must be signed in to change notification settings

andrefaria/spring-cloud-feign-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This is an example of how to use AngularJS + Feign + Spring Cloud.

Main Point: It has never been easier to do REST in Java.

This application goes to https://api.github.com and lists contributors of a repository.

Feign abstracts the Rest Client and Unmarshalling of JSON objects.

You can run it like a spring boot app: mvn spring-boot:run

You can see it working in your browser or curl: http://localhost:8080

Ex: http://localhost:8080/netflix/hystrix - lists contributors of Hystrix. http://localhost:8080/jquery/jquery- lists contributors of jQuery.

Every time you make a request the App goes to the REST github API and gets back with the information populated in a list of Pojos (Contributor.java).

Isn't that really Awesome? Enjoy!

About

Example of using Feign as a Rest Client with Spring Cloud and Angular JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published