Changes between Version 12 and Version 13 of DASISH/Scenario
- Timestamp:
- 04/12/13 14:06:18 (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DASISH/Scenario
v12 v13 12 12 13 13 14 '''ToDo:''' (general): add example XML serializations of requests/responses to serve as basis for (modifications of) the schemata 14 '''ToDo:''' (general): add example XML serializations of requests/responses to serve as basis for (modifications of) the schemata. 15 16 '''Status'''. Partially done. 15 17 16 18 = Authentication = 17 * User logs-in to annotation service, so the UID gets known by the server. 18 19 '''ToDo:''' Add to API the "who-am-I" service that allows the user to obtain his/her UID and list of notebooks(read and write), incl. their id's and rendering names. 20 21 '''Status''': done, pls check [[SpecificationDocument#Userrealm]] and [[XSD and XML#RespondingGETapiuser]] 19 * User logs-in to annotation service, so the UID gets known by the server. See [[SpecificationDocument#Userrealm]] and [[XSD and XML#RespondingGETapiuser]] 22 20 23 21 = Visiting an annotated web page = 24 22 25 * User: visits the page <...>.23 * User: visits the page http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia (for example). 26 24 * Client: requests the lists of annotations to which the user has "read" access. 27 * GET api/annotations?source= <...>&access=read25 * GET api/annotations?source="http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia"&access=read 28 26 * Service: returns list of annotation id-s with the corresponding headlines, notebooks, owners, and target sources URI's; 29 27 30 '''ToDo:''' Olha: example XML +schema of the respond. 31 32 '''Status'''. Done, pls check [[XSD and XML#RespondingGETapiannotationssourcehttp:en.wikipedia.orgwikiSagrada_FamC3ADliaaccessread]] 28 See [[XSD and XML#RespondingGETapiannotationssourcehttp:en.wikipedia.orgwikiSagrada_FamC3ADliaaccessread]] 33 29 34 30 * Client: Resolving fragments (mapping) happens after the response. There are two internal lists for the client: the resolvable and unresolvable target. … … 42 38 * Service: returns the annotation 43 39 44 '''ToDo:''' Olha: xml. 45 46 '''Status'''. Done, pls check [[XSD and XML#RespondingGETapiannotationsAID02exampleusageforresolvabletargetsources]]. 40 See [[XSD and XML#RespondingGETapiannotationsAID02exampleusageforresolvabletargetsources]]. 47 41 48 42 == Unresolvable target == … … 55 49 * GET api/sources/<sid>/cached/<cid> 56 50 57 '''ToDo:''' Olha: examples XML+schema of the respond, for all 4 calls. 58 59 '''Status'''. Done, pls check [[XSD and XML#RespondingGETapiannotationsAID01exampleusageforunresolvabletargetsources]], [[XSD and XML#RespondingGETapiannotationsAID01sourcesexampleusageforunresolvabletargetsources]], [[XSD and XML#RespondingGETapisourcesSID05cachedexampleusageforunresolvabletargetsources]], [[XSD and XML#RespondingGETapisourcesSID05cachedCID005Aexampleusageforunresolvabletargetsources]]. 51 See [[XSD and XML#RespondingGETapiannotationsAID01exampleusageforunresolvabletargetsources]], [[XSD and XML#RespondingGETapiannotationsAID01sourcesexampleusageforunresolvabletargetsources]], [[XSD and XML#RespondingGETapisourcesSID05cachedexampleusageforunresolvabletargetsources]], [[XSD and XML#RespondingGETapisourcesSID05cachedCID005Aexampleusageforunresolvabletargetsources]]. 60 52 61 53 = Annotation creation = … … 63 55 * Client: sends the annotation to the server 64 56 * POST api/annotation 65 66 '''ToDo:''' Olha: input example XML+schema of the body. 67 68 '''Status'''. Done, pls check [[XSD and XML#RequestbodyforPOSTapiannotations]]. 57 See [[XSD and XML#RequestbodyforPOSTapiannotations]], two versions, with and without action "CREATE_CACHED_REPRESENTATION". 69 58 70 59 * 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. 71 60 * Client: sends cached representation 72 61 * POST/api/cources/<sid>/cached 62 63 The serialisation is an instance of the same element as the serialization of the respond on GET api/sources/<sid>/cached/<cid> 64 === Olha's question === 65 Agree?? 66 67 73 68 * Service: store representation 74 69