π²Annotations
/getImageAnnotations/<image_id>
/getImageAnnotations/<image_id>Get the already stored annotations for an image
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
[
{
"type": "Annotation",
"body": [
{
"value": {
"Son": {
"type": ["producer"],
"volume": "0"
},
"Vue": {
"sense": "Vue"
}
},
"purpose": "sense"
},
{
"value": "jeux de Billards",
"purpose": "transcription",
},
"creator": {
"id": "id_user",
"name": "user_name"
},
"created": "2022-07-12T10:26:57.607Z"
}
],
"target": {
"source": "data:image/jpeg;base64..... OU mettre URL de l'image OU nom du fichier image (unique)",
"selector": {
"type": "FragmentSelector",
"conformsTo": "http://www.w3.org/TR/media-frags/",
"value": "xywh=pixel:324,174,411,106"
}
},
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "#a39cbd17-6d53-4c7b-8500-354f0dcb9cf4"
},
{
"type": "Annotation",
"body": [
{
"value": {
"Vue": {
"sense": "Vue"
},
"Son": {
"type": [
"producer"
],
"volume": "42"
}
},
"purpose": "sense"
},
{
"value": "vendeurs de cafΓ©",
"purpose": "transcription"
}
"creator": {
"id": "alefi-20-20",
"name": "Alexis"
},
"created": "2022-07-12T10:26:57.607Z"
}
],
"target": {
"source": "data:image/jpeg;base64....",
"selector": {
"type": "SvgSelector",
"value": "<svg><polygon points=\"544,12 749,111 776,27\" /></svg>"
}
},
"@context": "http://www.w3.org/ns/anno.jsonld",
"id": "#6fefe9fc-2543-40ad-9c0f-3147c7f26af0"
}
]/createAnnotation/<image_id>
/createAnnotation/<image_id>Creates a new annotation
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
Request Body
Name
Type
Description
/deleteAnnotation
/deleteAnnotationDeletes
Headers
Name
Type
Description
Request Body
Name
Type
Description
/updateAnnotationCoord
/updateAnnotationCoordUpdate the coordinates in the image
Query Parameters
Name
Type
Description
Headers
Name
Type
Description
Request Body
Name
Type
Description
Last updated