22 | | * The client: requests the lists of annotations to which the user has "read" access. |
23 | | * GET api/annotations?source=<...>&access=read |
24 | | * The call returns list of annotation id-s with the corresponding headlines, notebooks, owners, and target sources URI's ('''TODO''' Olha: example XML +schema of the respond). |
25 | | * Resolving fragments (mapping) happens after the response. There are two internal lists for the client: the resolvable and unresolvable target. |
| 22 | * Client: requests the lists of annotations to which the user has "read" access. |
| 23 | * GET api/annotations?source=<...>&access=read |
| 24 | * Service: returns list of annotation id-s with the corresponding headlines, notebooks, owners, and target sources URI's ('''TODO''' Olha: example XML +schema of the respond). |
| 25 | * Client: Resolving fragments (mapping) happens after the response. There are two internal lists for the client: the resolvable and unresolvable target. |
35 | | * The client: GET api/annotations/<aid> (Olha, to do: example XML+schema of the respond, for all 4 calls), |
36 | | * GET api/annotations/<aid>/sources |
37 | | * GET api/sources/<sid>/cached |
38 | | * GET api/sources/<sid>/cached/<cid> |
| 38 | * Client: get annotation and its target sources |
| 39 | *GET api/annotations/<aid> (Olha, to do: example XML+schema of the respond, for all 4 calls), |
| 40 | * GET api/annotations/<aid>/sources |
| 41 | * Client: get cached representations for target sources |
| 42 | * GET api/sources/<sid>/cached |
| 43 | * GET api/sources/<sid>/cached/<cid> |
42 | | * The client: POST api/annotation (Olha, to do: input example XML+schema of the body, like in the example) |
43 | | * Response: the annotation <aid>, with temp id-s replaced by the permanent ones, the full URI for the target sources, |
44 | | * action:create cached representation. |
45 | | * Followed by POST/api/cources/<sid>/cached |
| 47 | * Client: sends the annotation to the server |
| 48 | * POST api/annotation (Olha, to do: input example XML+schema of the body, like in the example) |
| 49 | * Service: responds with the annotation <aid>, with temp id-s replaced by the permanent ones, the full URI for the target sources, action:create cached representation. |
| 50 | * Client: sends cached representation |
| 51 | * POST/api/cources/<sid>/cached |
| 52 | * Service: store representation |