Am Mittwoch, 13. Juli 2016 00:49:40 UTC+2 schrieb mpl: > > On 12 July 2016 at 10:15, Markus Peröbner <[email protected] > <javascript:>> wrote: > > Am Montag, 11. Juli 2016 23:02:01 UTC+2 schrieb mpl: > > What I need is to reference the the JavaScript content via a permanode > and I > > think this is right now not possible right now via a URL. > > Ok, I understand what you mean/want now. > I think you're right that the web UI can't get you that kind of URL. > Maybe it could. > > On the other hand, the web UI is an interface for humans. it's not > supposed to be the API that your app is going to hit to get its > HTML/js/whatever resources. Your app should hit things like the search > handler (like the UI does) and the blobserver itself. Basically you > send a search query asking to describe the permanode you're interested > in, and you can find out in the JSON response if it has some > camliContent or whatever else. You can probably even send a search > query that directly gives you the camliContent of a permanode if it > has one. And then, you just ask the blobserver for the file under that > camliContent (this is what camget -contents does for example). > See pkg/search and its clients - the web UI, the publisher app, the > camtool command - to learn more about the search queries. >
What I like to do is to add my own interface for humans to the camlistore web UI. Now my first option would be to extend the camlistore source and rebuild camlistore every time I patch my custom UI to get that new interfaces into the camlistored server. On the other hand I think it will make extending the UI easier for me if I just upload my HTML (which is the extension to the UI) as content into my camlistore instance just as a blob. Because that HTML would be part of my camlistore content it would be synched between my camlistored instances on different devices. Which also allows me to patch my custom UI extension without needing to do a "go run make.go" again on everyone of my devices running camlistored. So for example I could implement my own contacts app which is a HTML page hosted within my camlistore content just as a blob. This contacts app could use the camlistored webservices to search for permanodes which have some custom attributes which represent contacts. -- You received this message because you are subscribed to the Google Groups "Camlistore" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
