Skip to content
Snippets Groups Projects
Commit 5e8da014 authored by Sven Kästle's avatar Sven Kästle
Browse files

feat: Implement missing GET annotation gateway

parent 6a2cd4e9
No related branches found
No related tags found
No related merge requests found
...@@ -59,8 +59,26 @@ function deleteAnnotation(id, responseHandler) { ...@@ -59,8 +59,26 @@ function deleteAnnotation(id, responseHandler) {
} }
/** /**
* GET: Get all annotations from database for a specific target * GET: Get a specific annotation for a given id
* *
* @param id The id of the annotation
* @param responseHandler The response handler
*/
function getAnnotation(id, responseHandler) {
var url = "../rest/annotations/" + id;
$.ajax({
url: url,
type: "GET",
dataType: "json",
success: function (response) {
// handle the response
responseHandler(response);
}
})
}
/**
* GET: Get all annotations from database for a specific target
* *
* @param targetId The target id * @param targetId The target id
* @param responseHandler The response handler * @param responseHandler The response handler
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment