Spark framework Spark is a basic Java api for creating REST services.
The main building block of a Spark application is a set of routes. A route is made up of three simple pieces:
- A verb (get, post, put, delete, head, trace, connect, options)
- A path (/hello, /users/:name)
- A callback (request, response) -> { }
Default Spark port is 4567. We can change it using port() method. For ex: port(8090);