Now that we've got the basics covered, let's see what we need to do to convert the incoming request parameters and body into our domain model (our case classes). In this section, we'll take the following steps:
Taskin our dummy
TaskServiceobject returns a
Future[Task]; we will change the Unfiltered configuration to start handling requests asynchronously.
Let's start with the first part and look at the route configuration and how to convert the incoming request to a
Task case class. The complete source for this example can be found in the
Step2.scala file in the