code: function formatParamUrl (url) {
    var start = url.indexOf('/:')
    if (start === -1) return url
  
    var end = url.indexOf('/', ++start)
  
    if (end === -1) {
      return url.slice(0, start) + '{' + url.slice(++start) + '}'
    } else {
      return formatParamUrl(url.slice(0, start) + '{' + url.slice(++start, end) + '}' + url.slice(end))
    }
  }
docs: The swagger standard does not accept the url param with ':' so '/user/:id' is not valid. This function converts the url in a swagger compliant url string => '/user/{id}'