A sample Spring Boot app using OpenFeign to communicate with https://thecatapi.com.
- Import as maven project.
- Run as Spring Boot application.
- Import as maven project.
- Run main method in Application.java.
cd my-feign-poc
mvn spring-boot:run
If you want to customize this project and try out other endpoints in https://thecatapi.com, you may sign-up at their website to obtain your own API key. Afterwards, set the value at application.yml:
client:
cat-api:
api-key: <your_api_key>