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
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
-> 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).