An open API service indexing awesome lists of open source software.

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"

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