All Downloads are FREE. Search and download functionalities are using the official Maven repository.

scala-cask.apiService.mustache Maven / Gradle / Ivy

There is a newer version: 7.9.0
Show newest version
//> using scala "3.3.1"
//> using lib "com.lihaoyi::cask:0.8.3"
//> using lib "com.lihaoyi::scalatags:0.12.0"
{{>licenseInfo}}

// generated from apiService.mustache
package {{apiPackage}}

{{#imports}}import _root_.{{import}}
{{/imports}}

import _root_.{{modelPackage}}.*

object {{classname}}Service {
  def apply() : {{classname}}Service = new {{classname}}Service {
{{#operations}}
    {{#operation}}
        override def {{operationId}}({{vendorExtensions.x-param-list-typed}}) : {{vendorExtensions.x-response-type}} = ???
    {{/operation}}
{{/operations}}
  }
}

/**
 * The {{classname}} business-logic
 */
trait {{classname}}Service {
{{#operations}}
{{#operation}}
  /** {{{summary}}}
   * {{{description}}}
   * @return {{returnType}}
   */
  def {{operationId}}({{vendorExtensions.x-param-list-typed}}) : {{vendorExtensions.x-response-type}}
{{/operation}}
{{/operations}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy