Kinto / kinto-discovery-lib

1 stars 0 forks source link

Add functionality of registering and retrieving multiple storageURLs #11

Open oak11 opened 8 years ago

oak11 commented 8 years ago

{'server_url': 'kinto.notmyidea.org'}

{'serverurls': { '/_': 'kinto.notmyidea.org', 'bucket/*': 'another.server.org', 'bucket/collection': 'kinto.notmyidea.org', }}

// Register a userURL for a specific bucket and collection: registerServerURL("http://myserver", "mybucket", "mycollection")

registerServerURL("http://myserver") // should be equivalent to registerServerURL("http://myserver", "", "")

retrieveServerURL("mybucket", "mycollection")

// check if there is an entry for mybucket/mycollection then mybucket/* then /mycollection then */