[annotator-dev] Query regarding reading and creating annotations
Randall Leeds
tilgovi at hypothes.is
Mon Jul 8 06:14:25 UTC 2013
On Sat, Jul 6, 2013 at 1:28 AM, Richa Jain <richa.jain1912 at gmail.com> wrote:
> Hello, I have a query regarding the 'read' endpoint. Does this read all the
> annotations from the database? then why use :id for that? Also, i have
> defined the API methods for 'creating' annotations and they are being stored
> into the db but still i get "not able to create annotations" after clicking
> "save button" ?
The 'read' action is for loading a single annotation. Most likely you
are not returning the correct response if you get that error. Can you
share a link to the latest code you're using for this or an example
request / response?
> If 'read' endpoint is to get a single annotation object from its ID, then
> how do i load all the annotations on a page when the page is refreshed?
The 'search' endpoint is for this.
More information about the annotator-dev
mailing list