https://github.com/chicio/springboot-restclients-cheatsheets
An example Spring Boot app that I created for my blog post "Spring Boot + Kotlin Rest client cheatsheet: RestTemplate and Webclient"
https://github.com/chicio/springboot-restclients-cheatsheets
kotlin microservice rest rest-api resttemplate spring-boot
Last synced: 10 months ago
JSON representation
An example Spring Boot app that I created for my blog post "Spring Boot + Kotlin Rest client cheatsheet: RestTemplate and Webclient"
- Host: GitHub
- URL: https://github.com/chicio/springboot-restclients-cheatsheets
- Owner: chicio
- Created: 2020-12-14T20:05:22.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2023-04-25T19:43:36.000Z (about 3 years ago)
- Last Synced: 2025-04-23T15:14:57.565Z (about 1 year ago)
- Topics: kotlin, microservice, rest, rest-api, resttemplate, spring-boot
- Language: Kotlin
- Homepage: https://www.fabrizioduroni.it/blog/
- Size: 11.6 MB
- Stars: 13
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SpringBoot-RestClients-Cheatsheets
An example Spring Boot app that I created to show how to use `RestTemplate` and `WebClient`. This is a repository for my blog post ["Spring Boot + Kotlin Rest client cheatsheet: RestTemplate and Webclient"](https://www.fabrizioduroni.it/2020/12/23/rest-template-webclient-spring-boot/).
### Description
This is a quote from the post:
> ...As a consequence of the fact that we live in the ["Microservices era"](https://microservices.io "microservices"), one of the most common operation that I do in my code is consume a REST api of one microservice from another one. How can you do that in a Spring Boot application? There are to main component that we can use: RestTemplate and WebClient. Let's see how they works by developing a small Spring Boot application that call an external service and will return the result of this call through an endpoint...
Click on the link above to read the posts.
### How to use
* launch [start-server.sh](https://github.com/chicio/SpringBoot-RestClients-Cheatsheets/blob/main/springboot-restclients-cheatsheets/wiremock/start-server.sh)
* launch the Spring Boot application