Changes between Version 140 and Version 141 of DASISH/XSD and XML


Ignore:
Timestamp:
12/18/13 10:28:52 (10 years ago)
Author:
olhsha
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • DASISH/XSD and XML

    v140 v141  
    361361
    362362
    363 == Editing annotation  PUT api/annotations/6a01ba7b-2a15-47d4-bf1c-a14b46eb953f ==
    364 
    365 === Request: an updated annotation ===
     363== Editing an annotation ==
     364
     365=== PUT api/annotations/6a01ba7b-2a15-47d4-bf1c-a14b46eb953f ===
     366
     367Request body : an updated annotation
    366368
    367369{{{#!xml
     
    417419}}}
    418420
    419 == Managing permission lists of users ==
    420 
    421 === GET api/annotations/AIDzyy/permissions ===
    422 
    423 {{{#!xml
    424 <?xml version="1.0" encoding="UTF-8"?>
    425 <permissions xmlns="http://www.dasish.eu/ns/addit"
    426  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    427  xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd"
    428  URI="http:/dasish.eu/permissions/PrmIdxxx">
    429     <user ref="http://dasish.eu/users/UIde1fe1f" permission="owner"/>
    430     <user ref="http://dasish.eu/users/UIxyxy" permission="writer"/>
    431     <user ref="http://dasish.eu/users/UIxxzz" permission="reader"/>
    432     <user ref="http://dasish.eu/users/UIxaaa" permission="reader"/>
    433 </permissions>
    434 }}}
    435 
    436 === GET api/users/info?email="alecor@mpi.nl" ===
    437 
    438 {{{#!xml
    439 <?xml version="1.0" encoding="UTF-8"?>
    440 <user xmlns="http://www.dasish.eu/ns/addit"
    441  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    442  xsi:schemaLocation="http://www.dasish.eu/ns/addit http://dasish.eu/DASISH-schema.xsd/DASISH-schema.xsd"
    443  displayName="Alexander G. Corpman"
    444  eMail="alecor@mpi.nl"
    445  ref="http://dasish.eu/users/UIDagc"/>
    446 }}}
    447421
    448422=== PUT api/annotations/AIDzyy/permissions===
     
    467441
    468442
    469 Respond body: is an envelope containing this list and no actions, since all the users are presented in the DB.
    470 
    471 === PUT api/annotations/AIDzyy/permissions/UIDagc ===
     443
     444=== PUT api/annotations/6a01ba7b-2a15-47d4-bf1c-a14b46eb953f/permissions/00000000-0000-0000-0000-000000000111 ===
    472445
    473446{{{#!xml
    474447<?xml version="1.0" encoding="UTF-8"?>
    475 <accessLevel xmlns="http://www.dasish.eu/ns/addit"
     448<permission xmlns="http://www.dasish.eu/ns/addit"
    476449 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    477  xsi:schemaLocation="http://www.dasish.eu/ns/addit
    478  http://dasish.eu/DASISH-schema.xsd">writer</accessLevel>
    479 }}}
     450 xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/schema/trunk/annotator-schema/src/main/resources/DASISH-schema.xsd">
     451   writer
     452</permission>
     453}}}
     454
     455Response: string "1 rows are updated/added".
    480456
    481457