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

concrete.templates.jaxrs.axios.code.v1.service.ftl Maven / Gradle / Ivy

There is a newer version: 0.5.3-RC1
Show newest version
/* eslint-disable */
import {execute<#if overloadUsed?default(false)>, overload<#if grableEnabled?default(true)>, grable} from '../concrete'

const concreteModuleName = '${moduleName}'

const ${serviceName} = {
<#list methods as method>
${method.jsdoc}
    '${method.name}': <#if method.overloads?size == 1><#assign overload=method.overloads[0]>function (<#list overload.params as param>${param}<#if param_has_next>, ) {
        return <#if grableEnabled?default(true)> grable(concreteModuleName)
            ? execute(concreteModuleName, '${method.serviceId}'<#if overload.params?size lt 2><#list overload.params as param>, ${param}<#else>, {<#list overload.params as param>${param}<#if param_has_next>, })
            : execute(concreteModuleName, `${overload.url}`, '${overload.resultType}', '${overload.httpMethod}'<#if overload.body??>, ${overload.body});
    }<#else>overload(concreteModuleName, {
        <#list method.overloads as overload>'${overload.params?size}': function (<#list overload.params as param>${param}<#if param_has_next>, ) {
            return <#if grableEnabled?default(true)> grable(concreteModuleName)
                ? execute(concreteModuleName, '${method.serviceId}'<#if overload.params?size lt 2><#list overload.params as param>, ${param}<#else>, {<#list overload.params as param>${param}<#if param_has_next>, })
                : execute(concreteModuleName, `${overload.url}`, '${overload.resultType}', '${overload.httpMethod}'<#if overload.body??>, ${overload.body});
        }<#if overload_has_next>, 
    })<#if method_has_next>, 
    
}

export default ${serviceName}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy