SparkJava
We will be using a free and open source Java web application development framework called SparkJava for building our REST API.
You need to add the following to the dependencies clause of build.gradle:
Run a server locally!
Running SparkJava is as easy as follows!
After running the ApiServer, point your browser to http://localhost:7000/ to see the following message!
Notice the following statement
The -> is part of Java's Lambda syntax. This syntax may be strange to you! If that is the case, read the next section (otherwise skip it).