Quantcast
Channel: Akka Libraries - Discussion Forum for Akka technologies
Viewing all articles
Browse latest Browse all 1365

Scala import hell with intellij working with akka-http

$
0
0

Hello,

Due to security policies we are not allowed to use “underscore” with our imports. Intellij’s scala support is not the best so I had no luck to find the specific import using optional parameters in a http path like:

import akka.http.scaladsl.server.Directives._

  val someRoute: Route = {

    path("path" / "to" / "resource") {
      parameters("color".?) { color =>
       ... do somthing with it
          }
}

I can trace back the “?” method but not the optional like stated in the documentation: https://doc.akka.io/docs/akka-http/current/routing-dsl/directives/parameter-directives/parameters.html
Anyway finding the specific import was not successful :frowning:

It would be great if someone could help me with this!

Tanks

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 1365

Trending Articles