See ome/omero-marshal#78 (comment)
and discussion below that.
Endpoints we'd want to support:
api/v0/annotations for listing all annotations
api/v0/m/objects/<id>/annotations for listing child Annotations linked to various objects (projects, datasets etc).
- For both of these URLs we'd want to filter by Annotation type. This could be done in 2 ways...
api/v0/tagannotations, api/v0/fileannotations etc. which matches omero object names
api/v0/annotations?type=file. which is what's used in webclient/api/annotations and could allow multiple types e.g. ?type=file&type=tag (although we don't support this in webclient).
- Also for both of those
/annotations URLs we'd want ?ns=my_namespace.
api/v0/annotations/<id>/annotations/ to list the child annotations linked to parent annotation:id. Also api/v0/annotations/<id>/tagannotations/ etc for listing Tags etc?
api/v0/annotations/?annotation=id to list the parent annotations linked to child annotation:id. Also api/v0/tagannotations/?annotation=id etc for listing Tags etc.
api/v0/objects/?annotation=id to list the parent objects (projects, datasets etc) linked to child annotation:id.
Question: do we want to support:
api/v0/annotations/?dataset=123 for listing child Annotations linked to parent Dataset? We do support api/v0/images/?dataset=123 for listing child Images of a Dataset, so it's consistent with that, but in the case of api/v0/annotations/?annotation=123 we are listing parent annotations, not children, so this might be confusing?!
cc @chris-allan @sbesson @joshmoore
See ome/omero-marshal#78 (comment)
and discussion below that.
Endpoints we'd want to support:
api/v0/annotationsfor listing all annotationsapi/v0/m/objects/<id>/annotationsfor listing child Annotations linked to various objects (projects,datasetsetc).api/v0/tagannotations,api/v0/fileannotationsetc. which matches omero object namesapi/v0/annotations?type=file. which is what's used inwebclient/api/annotationsand could allow multiple types e.g.?type=file&type=tag(although we don't support this in webclient)./annotationsURLs we'd want?ns=my_namespace.api/v0/annotations/<id>/annotations/to list the child annotations linked to parent annotation:id. Alsoapi/v0/annotations/<id>/tagannotations/etc for listing Tags etc?api/v0/annotations/?annotation=idto list the parent annotations linked to child annotation:id. Alsoapi/v0/tagannotations/?annotation=idetc for listing Tags etc.api/v0/objects/?annotation=idto list the parent objects (projects,datasetsetc) linked to child annotation:id.Question: do we want to support:
api/v0/annotations/?dataset=123for listing child Annotations linked to parent Dataset? We do supportapi/v0/images/?dataset=123for listing child Images of a Dataset, so it's consistent with that, but in the case ofapi/v0/annotations/?annotation=123we are listing parent annotations, not children, so this might be confusing?!cc @chris-allan @sbesson @joshmoore