* Include Respond Directives Examples for Java. * Include license on RespondWithDirectivesExamplesTest.
This commit is contained in:
parent
06c7467a0e
commit
d9c7f9b7f0
6 changed files with 141 additions and 6 deletions
|
|
@ -5,7 +5,7 @@ package docs.http.scaladsl
|
|||
|
||||
import akka.http.scaladsl.marshallers.sprayjson.SprayJsonSupport
|
||||
import akka.http.scaladsl.server.Directives
|
||||
import org.scalatest.{Matchers, WordSpec}
|
||||
import org.scalatest.{ Matchers, WordSpec }
|
||||
|
||||
class SprayJsonCompactMarshalSpec extends WordSpec with Matchers {
|
||||
|
||||
|
|
@ -22,7 +22,7 @@ class SprayJsonCompactMarshalSpec extends WordSpec with Matchers {
|
|||
}
|
||||
|
||||
// use it wherever json (un)marshalling is needed
|
||||
class MyJsonService extends Directives with CompactJsonFormatSupport{
|
||||
class MyJsonService extends Directives with CompactJsonFormatSupport {
|
||||
|
||||
// format: OFF
|
||||
val route =
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue