martinblech/play-mimerender

Play module for RESTful HTTP Content Negotiation

Scala
This is stars and forks stats for /martinblech/play-mimerender repository. As of 07 May, 2024 this repository has 8 stars and 0 forks.

play-mimerender Play module for RESTful HTTP Content Negotiation. Lets you define a mapping from your domain objects to different representations: def jsonTransform(s: String) = toJson(Map("message" -> toJson(s))) def jsonpTransform(s: String, r: Request[Any]) = { val callback = r.queryString.getOrElse("callback", Nil).headOption .getOrElse("callback") Jsonp(callback, jsonTransform(s)) } val m = mapping( "text/html" -> { s: String => views.html.index(s) }, "application/xml" ->...
Read on GithubGithub Stats Page
repotechsstarsweeklyforksweekly
ghostdogpr/calibanScalaShellOther88802280
Noble-Mushtak/Advent-of-CodeRustHaskellScala4000
Yubico/java-webauthn-serverScalaJavaJavaScript37901270
gauthamsam/cs260-hw6Scala0000
maneatingape/advent-of-codeScala31030
apache/kyuubiScalaJavaShell1.7k+5690+2
AlgebraicJulia/Semagrams.jlScalaTclShell85070
scalacenter/bloopScalaJavaJavaScript85501980
UnBCIC-TP2/Oberon-ScalaC++ScalaC440940
oyvindberg/st-material-uiScala27020