O'Reilly logo

RESTful Web Services with Scala by Jos Dirksen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Creating a simple DSL-based service

For each framework in this book, we create a simple getting started service. So for Akka HTTP, we did the same thing. Before we look at the code, let's begin by starting the service and firing a request using Postman. To start the service, from the command line, run the sbt runCH05-HelloAkka-DSL command:

$ sbt runCH05-HelloAkka-DSL
[info] Loading project definition from /Users/jos/dev/git/rest-with-scala/project
[info] Set current project to rest-with-scala (in build file:/Users/jos/dev/git/rest-with-scala/)
[info] Running org.restwithscala.chapter5.gettingstarted.HelloDSL 
Press <enter> to exit.

Open up Postman, and from the Chapter 05 collection, run the Hello Akka-DSL command. The server will respond with ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required