Hi Dave,
You should be able to use the 'webclient' JSON api.
This is what the webclient uses internally, so we don't document it or test it independently of webclient and in theory it's more likely to change on a minor release than the documented API.
But you can get map annotations for 1 or more objects, e.g. image, well, or dataset via:
- Code: Select all
/webclient/api/annotations/?type=map&image=3125701&image=3125703
For example, take a look at
http://idr.openmicroscopy.org/webclient ... ge=3125703To create a map annotation on an Image, you can POST to:
- Code: Select all
/webclient/annotate_map/
with JSON content such as:
- Code: Select all
{
image: 4420,
mapAnnotation: [["siRNAi","Aurora-B"],["test","edit"]]
}
To edit an existing annotation, also include
- Code: Select all
annId: 123
. This will replace existing Key-Value pairs with the list supplied.
Hope that helps.
Will.