annotationsatharvard / catcha

Catch-A - Catching Annotation: An annotation backend and API.
http://catcha.readthedocs.io
20 stars 9 forks source link

Update API returns 404 error when annotation identifier is not included in JSON payload #53

Closed jmiranda closed 9 years ago

jmiranda commented 9 years ago

The Update API currently ignores the request parameter in the URL.

jmiranda commented 9 years ago
Remote Address:54.148.223.225:8080
Request URL:http://54.148.223.225:8080/catch/annotator/update/120541
Request Method:POST
Status Code:404 Not Found
Request Payload:
{"media":"image","tags":[],"text":"a small portrait updated","uri":"http://oculus-dev.harvardx.harvard.edu/manifests/drs:5981093/canvas/canvas-5981102.json","rangePosition":{"x":"2141","y":"1844","width":"846","height":"591"},"bounds":{"x":"0","y":"-1194","width":"4680","height":"7372"},"updated":"2015-02-19T18:34:07.020Z","created":"2015-02-19T18:34:07.020Z","user":{"id":"test@mirador.org","name":"mirador"},"permissions":{"read":[],"update":["test@mirador.org"],"delete":["test@mirador.org"],"admin":["test@mirador.org"]},"archived":false,"ranges":[],"parent":"0"}