Changes between Version 24 and Version 25 of DASISH/SpecificationDocument
- Timestamp:
- 04/11/13 09:32:42 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DASISH/SpecificationDocument
v24 v25 240 240 ||= Resource =||= Description || 241 241 ||{{{GET api/annotations/<aid>}}}||Returns the serialized annotation that has this <aid>.|| 242 ||{{{GET api/annotations/<aid>/body}}}||Returns the body of the <aid>.|| 243 ||{{{GET api/annotations/<aid>/sources}}}||Returns the list of the <sid>-s of all the target sources of <aid>.|| 242 244 ||{{{DELETE api/annotations/<aid>}}}||Removes <aid> and all its target sources from the database. Returns the serialized representation of the removed <aid> with the message “the following annotation has been removed” or similar.|| 243 245 ||{{{PUT api/annotations/<aid>}}}||Updates the annotation with <aid>. E.g. it is used when <uid> wants to correct typos in the annotation body AND change annotated fragments. (See PUT api/annotations/<aid>/body for correcting body only.) The serialized representation of the updated annotation is given in the request body.|| 244 ||{{{GET api/annotations/<aid>/body}}}||Returns the body of the <aid>.||245 246 ||{{{PUT api/annotations/<aid>/body}}}||Updates the body of the annotation <aid>. Used e.g.for correcting typos in the text part. The updated annotation’s body is given in the body of the request.|| 246 ||{{{GET api/annotations/<aid>/sources}}}||Returns the list of the <sid>-s of all the target sources of <aid>.||247 248 [[Image(https://trac.clarin.eu/raw-attachment/wiki/DASISH/SpecificationDocument/REST2.png)]]249 247 250 248 === Sources