At the end of this session I got an idea to provide a Cloudant REST API, with the same endpoints of the Domino API but storing everything in Cloudant or CoucheDb.
Cloudant REST API
I created an new module in the Git repo of this session and start coding. Which results in a Spring Boot application. All the endpoints of the Domino REST API are available in this new REST API.
I used Spring Boot to show the power to build fast new REST API’s. There is built-in support for Swagger.
The service can create on the fly databases and manage the access control of the database. And all the CRUD operations you would expect for the Todos
With Spring boot you can run it everywhere. Out-of-the-box the application will run as runnable jar. But I also added support for Docker and Kubernetes.
There is also a manifest file present to push your application to any Cloud Foundry platform, like IBM Cloud or Pivotal Cloud Foundry.
The code is open source and part of the Git Repository used for this session. So you can reuse it or use it as a starting point for something new. Have fun with the code.
BTW I will also be presenting at Engage, my session on Tuesday at 17:00 in the Sky Room. I will talk about Spring Boot and Thymeleaf