code: def package_install(name, **kwargs):
      '''
      Install a "package" on the REST server
      '''
      cmd = DETAILS['url']+'package/install/'+name
      if kwargs.get('version', False):
          cmd += '/'+kwargs['version']
      else:
          cmd += '/1.0'
      r = salt.utils.http.query(cmd, decode_type='json', decode=True)
      return r['dict'f package_install(name, **kwargs):
      '''
      Install a "package" on the REST server
      '''
      cmd = DETAILS['url']+'package/install/'+name
      if kwargs.get('version', False):
          cmd += '/'+kwargs['version']
      else:
          cmd += '/1.0'
      r = salt.utils.http.query(cmd, decode_type='json', decode=True)
      return r['dict']
docs: Install a "package" on the REST server