- Clean this repository:
git clone https://github.com/hendisantika/springboot-reactive-web-api-rxjava.git
- Navigate to the folder:
cd springboot-reactive-web-api-rxjava
- Run the application:
mvn clean spring-boot:run
- Open Swagger UI: http://localhost:8081/swagger-ui/index.html
The reactive REST API to be built is just a simple CRUD about authors and books. Here are the endpoints :
- [POST] /api/authors → add an author
- [POST] /api/books → add a book
- [PUT] /api/books/{bookId} → update a book
- [GET] /api/books?limit={limit}&page={page} → get list of books
- [GET] /api/book/{bookId} → get a book’s detail
- [DELETE] /api/book/{bookId} → delete a book
Swagger UI
H2 Console
Books Console
Authors Console