| 464 | |
| 465 | |
| 466 | == Responding GET api/annotations/AID01/sources (for non-resolvable target sources) == |
| 467 | |
| 468 | {{{ |
| 469 | <?xml version="1.0" encoding="UTF-8"?> |
| 470 | <sources xmlns="http://www.dasish.eu/ns/addit" |
| 471 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 472 | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd"> |
| 473 | <targetSource xml:id="SID005" lastModified="2006-05-04T18:13:51.0Z"> |
| 474 | <URI>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Nativity_Fa.C3.A7ade</URI> |
| 475 | <versionString>1.0</versionString> |
| 476 | <versions> |
| 477 | <version ref="SID005"/> |
| 478 | <version ref="SID015"/> |
| 479 | </versions> |
| 480 | <cachedRepresentations> |
| 481 | <cachedRepresentation xml:id="CID005" URI="http://www.dasish.eu/DB/CID005" mimeType="text/html" tool="tool1" type="text"/> |
| 482 | <cachedRepresentation xml:id="CID005A" URI="http://www.dasish.eu/DB/CID005A" mimeType="image/png" tool="tool2" type="screenshot"/> |
| 483 | <cachedRepresentation xml:id="CID015" URI="http://www.dasish.eu/DB/CID015" mimeType="mimeType3" tool="tool3" type="type3"/> |
| 484 | </cachedRepresentations> |
| 485 | </targetSource> |
| 486 | <targetSource xml:id="SID007" lastModified="2006-05-04T18:13:51.0Z"> |
| 487 | <URI>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Passion_Fa.C3.A7ade</URI> |
| 488 | <versionString>1.0</versionString> |
| 489 | <versions> |
| 490 | <version ref="SID007"/> |
| 491 | <version ref="SID017"/> |
| 492 | </versions> |
| 493 | <cachedRepresentations> |
| 494 | <cachedRepresentation xml:id="CID007" URI="http://www.dasish.eu/DB/CID007" mimeType="mimeType5" tool="tool5" type="type5"/> |
| 495 | <cachedRepresentation xml:id="CID017" URI="http://www.dasish.eu/DB/CID017" mimeType="mimeType7" tool="tool7" type="type7"/> |
| 496 | </cachedRepresentations> |
| 497 | </targetSource> |
| 498 | </sources> |
| 499 | }}} |
| 500 | |
| 501 | == Responding GET api/sources/SID05/cached (for unresolvable target sources) == |
| 502 | |
| 503 | {{{ |
| 504 | <?xml version="1.0" encoding="UTF-8"?> |
| 505 | <cashedRepresentations xmlns="http://www.dasish.eu/ns/addit" |
| 506 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 507 | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd"> |
| 508 | <cachedRepresentation xml:id="CID005" URI="http://www.dasish.eu/DB/CID005" mimeType="text/html" tool="tool1" type="text"/> |
| 509 | <cachedRepresentation xml:id="CID005A" URI="http://www.dasish.eu/DB/CID005A" mimeType="image/png" tool="tool2" type="screenshot"/> |
| 510 | </cashedRepresentations> |
| 511 | }}} |
| 512 | |
| 513 | == Responding GET api/sources/SID05/cached/CID005A (for unresolvable target sources) == |
| 514 | |
| 515 | {{{ |
| 516 | <?xml version="1.0" encoding="UTF-8"?> |
| 517 | <cashedRepresentation xmlns="http://www.dasish.eu/ns/addit" |
| 518 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 519 | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
| 520 | xml:id="CID005A" URI="http://www.dasish.eu/DB/CID005A" mimeType="image/png" tool="tool2" type="screenshot"/> |
| 521 | }}} |
| 522 | |
| 523 | == Request body for POST == |
| 524 | |
| 525 | <?xml version="1.0" encoding="UTF-8"?> |
| 526 | <newAnnotation xmlns="http://www.dasish.eu/ns/addit" |
| 527 | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 528 | xsi:schemaLocation="http://www.dasish.eu/ns/addit file:/Users/olhsha/repositories/DASISH/t5.6/docs/XMLandXSD/DASISH-schema.xsd" |
| 529 | xml:id="AID0010" |
| 530 | URI="http://www.dasish.eu/ns/addit/DB" |
| 531 | timeStamp="2013-05-04T18:13:51.0Z"> |
| 532 | <owner ref="ID02"/> |
| 533 | <headline>Organ</headline> |
| 534 | <body> |
| 535 | <note>installed in 2010</note> |
| 536 | </body> |
| 537 | <targetSources> |
| 538 | <targetSource xml:id="SID018"> |
| 539 | <URI>http://en.wikipedia.org/wiki/Sagrada_Fam%C3%ADlia#Organ</URI> |
| 540 | <versionString></versionString> |
| 541 | </targetSource> |
| 542 | </targetSources> |
| 543 | <readers> |
| 544 | <reader ref="ID02"/> |
| 545 | </readers> |
| 546 | <writers> |
| 547 | <writer ref="ID02"/> |
| 548 | </writers> |
| 549 | <notebooks> |
| 550 | </notebooks> |
| 551 | </newAnnotation> |