...
Acquisition instance schema
Info |
---|
The schemas below are severely abbreviated, and are thus illustrative. For a full list of the fields that may potentially be present in payloads when creating, updating, or reading individual Acquisition records, please see the Acquisition record schema for release 0.5. |
Create and Update should use the following schema.:
Note |
---|
Aron to verify that this simpler, single namespace attribute works for create and update, and to replace with more full declaration if it does not |
Code Block |
---|
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <ns2:acquisitions_common xmlns:ns2="http://collectionspace.org/services/acquisition"> <acquisitionReferenceNumber>2010.1.51<1</acquisitionReferenceNumber> <acquisitionSources> <acquisitionSource>Milton Bradley<<acquisitionSource>urn:cspace:org.collectionspace.demo:orgauthority:name(TestOrgAuth):organization:name(Hasbro, Inc.)'Hasbro, Inc.'</acquisitionSource> </acquisitionSources> <acquisitionReason>Supplement collection of board games.</acquisitionReason> ... </ns2:acquisitions-common> |
Read will return the above, plus additional fields (uri and csid) for accessfollowing schema:
Code Block |
---|
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <ns2:acquisitions_common xmlns:ns2="http://collectionspace.org/services/acquisition" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://collectionspace.org/services/acquisition http://services.collectionspace.org/acquisition/acquisitions_common.xsd"> <acquisitionReferenceNumber>2010.1</acquisitionReferenceNumber> <acquisitionSources> <acquisitionSource>urn:cspace:org.collectionspace.demo:orgauthority:name(TestOrgAuth):organization:name(Hasbro, Inc.)'Hasbro, Inc.'</acquisitionSource> <uri>/acquisitions/f0cf4c50-8f8a-4df0-869a</uri> <csid>f0cf4c50-8f8a-4df0-869a</csid></acquisitionSources> <acquisitionReason>Supplement collection of board games.</acquisitionReason> ... </ns2:acquisitions-common> |
Note |
---|
More complete examples of these schemas will be added here in the near future. |
Acquisition list schema
List (and variants) will return the following schema. This schema includes the additional fields uri and csid to help facilitate access to individual records:
Code Block |
---|
<?xml version="1.0" encoding="utf-8" standalone="yes"?> <ns2:acquisitions-common-list xmlns:ns2="http://collectionspace.org/services/acquisition"> <acquisition-list-item> <acquisitionReferenceNumber>2010.1.51</acquisitionReferenceNumber> <uri>/acquisitions/c6563617-a129-4b92-8d38</uri> <csid>c6563617-a129-4b92-8d38</csid> </acquisition-list-item> .... </ns2:acquisitions-common-list> |