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

finch.DataAccessor.mustache Maven / Gradle / Ivy

There is a newer version: 3.0.0-rc1
Show newest version
package {{packageName}}

// TODO: properly handle custom imports
import java.io._
import java.util.UUID
import java.time._


import {{modelPackage}}._

trait DataAccessor {
    // TODO: apiInfo -> apis -> operations = ???
    // NOTE: ??? throws a not implemented exception

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy