Tutorial by Examples: bodyparser

@BodyParser.Of(BodyParser.Json.class) public Result sayHello() { JsonNode json = request().body().asJson(); String name = json.findPath("name").textValue(); if(name == null) { return badRequest("Missing parameter [name]"); } else { return ok...

Page 1 of 1