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 about it and have been unable to figure out from source code.
相关问题
- Unusual use of the new keyword
- Get Runtime Type picked by implicit evidence
- What's the point of nonfinal singleton objects
- PlayFramework: how to transform each element of a
- Error in Scala Compiler: java.lang.AssertionError:
相关文章
- Gatling拓展插件开发,check(bodyString.saveAs("key"))怎么实现
- RDF libraries for Scala [closed]
- Why is my Dispatching on Actors scaled down in Akk
- How do you run cucumber with Scala 2.11 and sbt 0.
- how to set H2 primary key id to auto_increment?
- GRPC: make high-throughput client in Java/Scala
- Setting up multiple test folders in a SBT project
- Testing request with CSRF Token in Play framework
You should be able to do the following:
And also things like:
Here is what I did.
have a look at this article on playlatam
also check this question on google list
for java (with a param names java_name):
for scala (with a param names scala_name):
I had to do it somewhat differently (maybe I'm on a newer version of the codebase):
my javascript:
my route:
My controller method:
I assume this will change in the final version.