Akka-HTTP Routes

Learn how to start the server and implement the routes for returning and updating a single product.

Basic routes

Defining the routes is pretty simple if you are used to the Akka-HTTP routing DSL syntax.

Press + to interact
val route = path("product" / JavaUUID) { id: ProductId =>
get {
???
} ~ put {
???
}
} ~ path("products") {
get {
???
} ~
post {
???
}
}

We will fill in the details later on.

Starting the server

Now, let’s start the actual server to make use of our ...

Access this course and 1400+ top-rated courses and projects.