Changes between Version 10 and Version 11 of DASISH/SpecificationDocument


Ignore:
Timestamp:
04/04/13 15:37:37 (11 years ago)
Author:
Przemek
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/SpecificationDocument

    v10 v11  
    9898=== api/annotations
    9999
    100 [[Image()]]
     100[[Image(https://trac.clarin.eu/raw-attachment/wiki/DASISH/SpecificationDocument/REST1.png)]]
    101101
    102 api/annotations/<aid>
     102=== api/annotations/<aid>
     103
    103104It is assumed, that if the logged-in user <uid> has no “read” access to <aid> then GET methods over URI-s of the form api/annotations/<aid>[/…] will return error status Unauhtorized access 401, or similar. The same happens if the logged-in user <uid> has no “write” access to <aid> with PUT, POST and DELETE methods over the URI-s of the form api/annotations/<aid>[/…] .
    104105
    105106The table below describes the behavior of the pair (method, URI), when user <uid> has authorized access to <aid>. Here  “authorized access “ means that <uid> has “read” access for GET-methods, and “write” access for PUT, POST, and DELETE methods.
    106107
    107 TABLE6
     108[[Image(https://trac.clarin.eu/raw-attachment/wiki/DASISH/SpecificationDocument/REST2.png)]]
    108109
    109 Sources
     110=== Sources
    110111
    111112A source represents (a specific fragment of) a specific version of an annotatable object.  For instance, if an annotatable object is a web-page that has 3 versions and users have annotated versions 1 and 3, then there are 2 sources in the Data Base that correspond to the “web-page”.  Naturally, these sources represent versions 1 and 3.
     
    119120Cached representations are managed by the client, therefore creation and deletion API is necessary. It is possible to store the cashed representation not only of the fragment precisely corresponding to an annotation target source, but of a larger fragment and even of the entire annotatable object.
    120121
    121 api/sources
     122=== api/sources
    122123
     124[[Image(https://trac.clarin.eu/raw-attachment/wiki/DASISH/SpecificationDocument/REST3.png)]]
     125
     1263 - not to be implemented in the first prototype.
     127
     128=== api/notebooks
     129
     130[[Image(https://trac.clarin.eu/raw-attachment/wiki/DASISH/SpecificationDocument/REST4.png)]]
    123131 
    124132