entity directive

From the route:

entity(as[ScriveRequest]) { scrive =>
  // use scrive, long and lat appropriately
  complete
}

Read from the source about entity in Spray's official documentation.

Add akka-http-spray-json-experimental to libraryDependencies to have JSON serialization and de-serialization available.

You may also want to use akka-http-xml-experimental so XML are handled, too.

results matching ""

    No results matching ""