Skip to content
k4rl85 edited this page Dec 2, 2014 · 3 revisions

API

  • POST /shares/<root_path>/<user> -- create the share if needed
  • DELETE /shares/<root_path>/<user> -- remove the share with user
  • DELETE /shares/<root_path>/<user> - remove user from the share

Possible data structure:

{'Photos': {'owner': 'Pippo',
            'users': ['Pluto', 'Paperino', 'Minnie']  # sharing users ('Pippo' is implicitly included, beeing the owner)
           },
 'Music': {'owner': 'Paperone',
           'users': ['Paperino', 'Qui', 'Quo', 'Qua']
          }
}
Clone this wiki locally