Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- val route =
- get {
- path("rest") {
- path("orders") {
- complete {
- "List of orders"
- }
- } ~
- path("orders" / Segment) { orderId: String ⇒
- complete {
- s"Order with id = $orderId"
- }
- } ~
- path("orders" / Segment / "shipments") { orderId: String ⇒
- complete {
- s"Shipments for id = $orderId"
- }
- }
- }
- } ~
- post {
- path("orders" / Segment / "cancel") { orderId: String ⇒
- complete(s"Cancel order id = $orderId")
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement