finch.DataAccessor.mustache Maven / Gradle / Ivy
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