This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Input data | |
curl -XPUT http://localhost:9200/games/measure/1 -d ' | |
{ | |
"id": 1, | |
"user_id": 1, | |
"points": 3000, | |
"games": 3, | |
"points_per_game": 1000, | |
"date": "2011-07-23" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package controllers | |
import play._ | |
import play.mvc._ | |
import org.scalacheck._ | |
import scala.util.parsing.json._ | |
import java.util.{Calendar, Date} | |
import java.text.SimpleDateFormat | |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.