code: def construct_parameter_pattern(parameter):
      
      name = parameter['name']
      type = parameter['type']
  
      repeated = '[^/]'
  
      if type == 'integer':
          repeated = '\d'
  
      return "(?P<{name}>{repeated}+)".format(name=name, repeated=repeated)
docs: Given a parameter definition returns a regex pattern that will match that
      part of the path.