[annotator-dev] annotator2/master storage configuration

Randall Leeds tilgovi at hypothes.is
Fri Jan 30 19:01:08 UTC 2015


On Jan 30, 2015 1:49 PM, "Robert Casties" <casties at mpiwg-berlin.mpg.de>
wrote:
>
> Hi Banjamin,
>
> I was having the same problem as Andrew so your information helped me a
lot.
>
> On 26.01.15 15:32, Benjamin Young wrote:
> > I'm guessing your wanting to use the HTTP Storage implementation (since
you
> > mention endpoint configuration). If that guess is correct, you would do
it
> > something like this:
> >
> > ```
> > anno.setStorage(function() {
> >   return new HTTPStorage({
> >     prefix: '/url/to/your/endpoint'
> >   });
> > });
> > ```
>
> I was just wondering about the next step, namely how to get Annotator to
> do the initial load of the annotations for a page.
>
> I came up with
>
> anno.registry.annotations.load({uri: uri})
>
> after the setStorage above which worked for me but it seems not like the
> official way :-)
>
> Is there an official way to start the initial load?
>

I think that would be the way, currently.

Do you think it's a lack of documentation which makes you feel unsure about
this, or is it altogether too "deep" in the namespace?

This is valuable feedback for refining the APIs as we get ready to finalize
for 2.0.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/annotator-dev/attachments/20150130/0f353eac/attachment-0004.html>


More information about the annotator-dev mailing list