anchor.diff:  ----
   
   There is a lot of magic. The `@SpringBootApplication` triggers the component scan and configuration of the Spring application.
  +
  +Note that you can switch the underlying web server, and choose between Tomcat, Jetty and Undertow. In the example, I used Jetty. This is done by choosing the module you want in the dependency management system (grade in this case).
   
   === Resources
   
  
positive.code: 
  == SparkJava
  
  Don't confuse Spark with Apache Spark. It has nothing in common. Spark is a tiny Sinatra inspired framework for creating web applications in Java 8 with minimal effort. In effect it is tiny, but very feature rich.
  
  === Main
  
  === Resources
  
  
negative.code: 
  * I'm about to build a tiny RESTful API. UI is not considered in this article (note that every candidate framework has a mean to serve static resources easily)
  * Only use HTTPS to access the API
  * The API will have two sets of resources (aka two microservices): a simple hello world resource calling a cars resource to get cars available (what a useless example!). For simplicity's sake, they will be deployed in the same server, but will communicate over HTTPS.
  * The resource will have a JSON representation
  * Each representation will have at least a self link to the resource
  * After a resource creation, client receive a Location header (the resource's link)
  * The API will be accessible only by people providing a Facebook OAuth token
  * Each API must have a monitoring / metrics facility (not tested though)
  * Each service may be packaged as a standalone jar, to be run using `java -jar`.
  
  == The candidates
  
  