code: function extractTemplateParameters(url) {
          var templateParametersObject = {};
  
          var regexp = /{\?(.*)}/g;
          var templateParametersArray = regexp.exec(url)[1].split(',');
  
          angular.forEach(templateParametersArray, function (value) {
              templateParametersObject[value] = '';
          });
  
          return templateParametersObject;
      }
docs: /*
  Returns the template parameters of the given url as object. e.g. from this url
  'http://localhost:8080/categories{?page,size,sort}' it will return the following object:
  {'page': '', 'size': '', 'sort': ''}
  
  @param {string} url the url with the template parameters
  @returns {object} the object containing the template parameters