...
For example, the following XML payload would be the result of a GET request on the Vocabulary service:
Code Block |
---|
<?xml version="1.0" encoding="UTF-8"?> |
...
<document name="vocabularies"> |
...
<ns2:vocabularies_common |
...
xmlns:ns2="http://collectionspace.org/services/vocabulary" |
...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
...
<shortIdentifier>1296500910627</shortIdentifier> |
...
<refName>urn:cspace:org.collectionspace.demo:vocabulary:name(1296500910627)'displayName-1296500910627'</refName> |
...
<csid>31af11b0-09b3-4774-8791</csid> |
...
<displayName>displayName-1296500910627</displayName> |
...
<vocabType>enum</vocabType> |
...
</ns2:vocabularies_common> |
...
<ns2:collectionspace_core |
...
xmlns:ns2="http://collectionspace.org/collectionspace_core/" |
...
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> |
...
<tenantId>1</tenantId> |
...
<updatedAt>2011-01-31T19:08:35Z</updatedAt> |
...
<createdAt>2011-01-31T19:08:35Z</createdAt> |
...
</ns2:collectionspace_core> |
...
</document> |
For each schema defined by the document type there is a schema entry which contains the document properties belonging to that schema. The XSD schema that correspond to that schema can be used to validate the content of the schema section
...