Reactive application built using Kotlin and Spring WebFlux. This is just a showcase project for demonstration of reactive possibilities and Server-Sent Events in Kotlin together with Spring Boot.
To learn more, visit this blog post
To run this application, simply execute:
mvn spring-boot:runRemember that you should have a MongoDB server running on host and port.
After running the application, the public instance should be available at http://localhost:8080 As for now, it offers the following endpoints:
GET /books/{title}returns a book with given titlePOST /bookswith a request body containg title and author will save a new book to the storageGET /bookswill give you all the books in the storage using Server-Sent Event Stream