I\'m trying to implement a REST API with Play 2.0 (Scala) but I\'m getting stuck in POST method. How do I get the payload from Request object? I haven\'t find any documentation
Here is what I did.
val map : Map[String,Seq[String]] = request.body val seq1 : Seq[String] = map.getOrElse("socket_id", Seq[String]()) val seq2 : Seq[String] = map.getOrElse("channel_name", Seq[String]()) val socketId = seq1.head val channelName = seq2.head