es/utils/swagger.js
function expandPath (path, replacements) {
  return R.toPairs(replacements).reduce((path, [key, value]) => path.replace(`{${key}}`, value), path)
}
function expandPath (path, replacements) {
  return R.toPairs(replacements).reduce((path, [key, value]) => path.replace(`{${key}}`, value), path)
}
function expandPath ( path , replacements ) { return R . toPairs ( replacements ) . reduce ( ( path , [ key , value ] ) => path . replace ( ` ${ key } ` , value ) , path ) }
Perform path string interpolation
@static
@rtype (path: String, replacements: Object) => String
@param {String} s - String to convert
@return {String} Converted string
Perform path string interpolation