Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/satzrp/spring-boot-rest-client-kotlin
Sample spring boot REST client application using Kotlin
https://github.com/satzrp/spring-boot-rest-client-kotlin
kotlin spring spring-boot
Last synced: 6 days ago
JSON representation
Sample spring boot REST client application using Kotlin
- Host: GitHub
- URL: https://github.com/satzrp/spring-boot-rest-client-kotlin
- Owner: satzrp
- Created: 2017-09-09T21:27:29.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2017-09-09T21:27:57.000Z (about 7 years ago)
- Last Synced: 2023-11-28T08:25:59.866Z (12 months ago)
- Topics: kotlin, spring, spring-boot
- Language: Kotlin
- Homepage:
- Size: 3.91 KB
- Stars: 1
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Sample spring boot rest client application using Kotlin #
This is a sample spring boot REST client application using [Kotlin](https://kotlinlang.org) language.
Application is bootstrapped using [Spring Initializr](http://start.spring.io)
## Modules used ##
* Web - for exposing the REST endpoints
* Actuator - for various metrics[JSONPlaceholder](https://jsonplaceholder.typicode.com) - used as the test REST API
**RestTemplate** from Spring, is used for calling the REST endpoints.
**Kotlin Coroutine** feature is used for making non-blocking calls to REST endpoints *(It is an experimental feature,
so not included in the spring boot dependencies by default. To be added manually in the pom.xml)*## Endpoints ##
* GET - /posts/all (blocking calls)
* GET - /posts/async/all (non-blocking calls)## To build and run the application ##
```text
mvn clean install -Dmaven.test.skip=true
```## Tools used ##
* IntelliJ IDEA
* Git
* Postman