Open kevinsbarnard opened 1 year ago
There's a an existing one at POST anno/v1/associations/bulk
that accepts a body with an array of Association data (as json)
Thanks @hohonuuli! You're right, I misspoke today in the meeting and just looked over the annosaurus code. Not sure why I didn't implement these before. I will use PUT anno/v1/annotations/bulk
for annotation updates and PUT anno/v1/associations/bulk
for association (bounding box data) updates.
One more detail ... anno/v1/annotations/bulk
will only change information in the imaged_moments
and observations
tables. Any changes to image_references or associations is ignored. (That's intentional BTW)
Good to know -- Gridview should only be changing the observation concept via anno/v1/annotations/bulk
.
Found the issue. I've patched it in code and will release a fix tomorrow.
Got delayed a bit dealing with an upgrade to Scalatra 3/Jetty 11. They're resolved now and integration testing looks good. I've pushed a new release as annosaurus 0.16.0. New release has been deployed internally.
@kevinsbarnard Looks like this may be OK to close as completed?
VARS GridView currently does one request per update/delete of bounding box annotation data. This should be swapped out for the bulk update/delete endpoints for efficiency.