Creating RESTful interfaces with Akka HTTP
Now that we have a little background on REST in general, and how Akka HTTP evolved from Spray, it's time to dig in and understand how we can use the inbound Akka HTTP API to front our services with RESTful interfaces. Here, the goal for me will be to provide details on the low-level and high-level inbound HTTP APIs within Akka. Although refactoring later on will use the high-level routing, DSL-based API, it's important to understand what's happening under the hood with the low-level API first.
Before jumping into descriptions of the low and high-level APIs, it's important to understand the different modules that make up Akka HTTP. These modules are as follows:
akka-http-core
: This is where the code for the low-level server and for the client-side HTTP API lives.akka-http
: This is where the high-level inbound HTTP API lives with things such as the routing DSL, marshalling, and compression/decompression included.akka-http-testkit
: This is where the...