class_docstr: Wraps a Swagger operation into a Postman Request
class_docstr_tok: ["Wraps","a","Swagger","operation","into","a","Postman","Request"]
code: def process_url(self, urlvars=False):
      url = self.url
      path_vars = {}
      url_vars = {}
      params = dict((p["name"], p) for p in self.params)
      params.update(
          dict(
              (p["name"], p)
              for p in self.operation.get("parameters", [])
          )
      )
      if not params:
          return url, None
      for name, param in iteritems(params):
          if param["in"] == "path":
              url = url.replace("{%s}" % name, ":%s" % name)
              path_vars[name] = DEFAULT_VARS.get(param["type"], "")
          elif param["in"] == "query" and urlvars:
              default = DEFAULT_VARS.get(param["type"], "")
              url_vars[name] = param.get("default", default)
      if url_vars:
          url = "?".join((url, urlencode(url_vars)))
      return url, path_vars
  
imports: from __future__ import unicode_literals, absolute_import
  from time import time
  from uuid import uuid5, NAMESPACE_URL
  from six import iteritems
  from six.moves.urllib.parse import urlencode
label_desc: Use image node_id 7 for calling the Request obj's underlying member method code with example usage: obj.process_url(urlvars) and returns: url,  path_vars, url,  None