scala-play-server.app.apiImplStubs.scala.mustache Maven / Gradle / Ivy
package {{package}}
{{#supportAsync}}
import scala.concurrent.Future
{{/supportAsync}}
{{#imports}}
import {{import}}
{{/imports}}
{{#operations}}
/**
* Provides a default implementation for [[{{classname}}]].
*/
{{>generatedAnnotation}}
class {{classname}}Impl extends {{classname}} {
{{#operation}}
/**
* @inheritdoc
*/
override {{>app/defOperationSignature}} = {
// TODO: Implement better logic
{{#supportAsync}}Future.successful({{/supportAsync}}{{^returnType}}{{#supportAsync}}(): Unit{{/supportAsync}}{{/returnType}}{{#returnType}}{{&defaultResponse}}{{/returnType}}{{#supportAsync}}){{/supportAsync}}
}
{{^-last}}
{{/-last}}
{{/operation}}
}
{{/operations}}