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

scala-finch.DataAccessor.mustache Maven / Gradle / Ivy

There is a newer version: 7.8.0
Show newest version
package {{packageName}}

// TODO: properly handle custom imports
import java.io._
import java.util.UUID
import java.time._
import com.twitter.finagle.http.exp.Multipart.{FileUpload, InMemoryFileUpload, OnDiskFileUpload}

import {{modelPackage}}._

trait DataAccessor {
    // TODO: apiInfo -> apis -> operations = TODO error
    private object TODO extends CommonError("Not implemented") {
        def message = "Not implemented"
    }

{{#apiInfo}}
    {{#apis}}
{{#operations}}
    {{#operation}}
        /**
        * {{{description}}}
        * @return A {{returnType}}{{^returnType}}Unit{{/returnType}}
        */
        def {{baseName}}_{{operationId}}({{{vendorExtensions.x-codegen-typed-params}}}): Either[CommonError,{{returnType}}{{^returnType}}Unit{{/returnType}}] = Left(TODO)

    {{/operation}}
{{/operations}}
            {{/apis}}
{{/apiInfo}}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy