js/ZypSMDReader.js
function (methodName, args) {

            var service = this.smd.services[methodName],
                basePath = this.getRootPath(),
                url,
                parameters = this.enumerateParameters(service);

            //if no service target, it sits at the root
            url = basePath + (service.target ? "/" + service.target : "");

            //replace path params where required
            url = this.replacePathParamsInUrl(url, parameters.PATH, args);

            //add any query params
            url = this.addQueryParamsToUrl(url, parameters.URL, args);

            return url;

        }
function (methodName, args) {

            var service = this.smd.services[methodName],
                basePath = this.getRootPath(),
                url,
                parameters = this.enumerateParameters(service);

            //if no service target, it sits at the root
            url = basePath + (service.target ? "/" + service.target : "");

            //replace path params where required
            url = this.replacePathParamsInUrl(url, parameters.PATH, args);

            //add any query params
            url = this.addQueryParamsToUrl(url, parameters.URL, args);

            return url;

        }
function ( methodName , args ) { var service = this . smd . services [ methodName ] , basePath = this . getRootPath ( ) , url , parameters = this . enumerateParameters ( service ) ; //if no service target, it sits at the root
 url = basePath + ( service . target ? "/" + service . target : "" ) ; //replace path params where required
 url = this . replacePathParamsInUrl ( url , parameters . PATH , args ) ; //add any query params
 url = this . addQueryParamsToUrl ( url , parameters . URL , args ) ; return url ; }
For the specified service, map the args object to the target + parameters to
get a full, functional URL.
For the specified service map the args object to the target + parameters to get a full functional URL .