Changes between Version 30 and Version 31 of DASISH/Scenario


Ignore:
Timestamp:
05/08/13 12:52:03 (11 years ago)
Author:
olhsha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/Scenario

    v30 v31  
    1818= Authentication =
    1919* User logs-in to annotation service, "uid" gets known by the server. See [[SpecificationDocument#Userrealm | DASISH specification: user realm]] and [[XSD and XML#RespondingGETapiuseruid | Example: getting user information, incl. current-user flag]]
     20
     21
    2022
    2123= Visiting an annotated web page =
     
    7375
    7476= Editing an annotation body =
    75 '''TODO'''
     77
     78PUT
     79
     80Response: the envelope {A', R^*}, make a schema for it!!
     81
     82The same for posting
    7683
    7784= Managing readers and writers =
    7885
    79 == Adding readers and writers ==
    80 '''TODO'''
     86ReMOVE readers and writers from the annotations:
    8187
    82 == Removing readers and writers ==
    83 TODO
     88Make list of the users with attribute permissions (add to schema!!)
     89
     90Give the list of the users for  a given annotation/notebook
     91
     92GET api/annotations/<aid>/permissions
     93
     94== Adding/Deleting readers and writers ==
     95
     96GET api/users/info?email=<...>
     97
     98Response: UID and the display name
     99
     100PUT api/annotations/<aid>/permissions
     101
     102body is the list
     103
     104Response in the envelope
     105
     106== Adding a reader/writer ==
     107
     108PUT api/annotations/<aid>/permissions/<uid>
     109
     110Body contains the access level of this user to this annotation
     111
     112No body in in response (no envelope), just an http status code
     113
     114== Removing a reader or a writer ==
     115
     116DELETE api/annotations/<aid>/permissions/<uid>
     117
     118No body in the response (no envelope), just an http status code
    84119
    85120= Managing annotations =
    86121
    87 == Deleting an entire annotation ==
    88 '''TODO'''
     122== Deleting an entire annotation (if <uid> is an owner) ==
     123
     124DELETE api/annotations/<aid>
     125
     126No body in the response (no envelope), just an http status code
    89127
    90128= Notebooks =
    91129
    92 == Retrieving list of annotations in a notebook ==
    93 '''TODO'''
     130== Retrieve notebooks Info ==
     131
     132GET api/notebooks
     133
     134== Retrieving the list of annotations in a notebook if <uid> has a read access to this notebook ==
     135
     136GET api/notebooks/<nid>/annotations/
     137
     138Response: XML list of annotation Info.
    94139
    95140== Adding an annotation to a notebook ==
    96 '''TODO'''
     141
     142PUT api/notebooks/<nid>/<aid>
     143
     144Response: status code
     145