Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 Loan In records, please see the Loan In record schema for release 0.5.1.

Create and Update should use the following schema:

Code Block
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ns2:loansin-common xmlns:ns2="http://services.collectionspace.org/loanin">
    <loanInNumber>LI2010.05</loanInNumber>
    <loanReturnDate>2012-01-29</loanReturnDate>
    <loanPurpose>For Surfboards of the 1960s exhibition.</loanPurpose>
    ...
</ns2:loansin-common>

Read will return the following schema:

Code Block
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ns2:loansin_common xmlns:ns2="http://collectionspace.org/services/loanin" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://collectionspace.org/services/loanin http://services.collectionspace.org/loanin/loansin_common.xsd">
    <loanInNumber>LI2010.05</loanInNumber>
    <loanReturnDate>2012-01-29</loanReturnDate>
    <loanPurpose>For Surfboards of the 1960s exhibition.</loanPurpose>
    ...
</ns2:loansin-common>
Loan In list schema

List (and variants) will return the following schema. This schema includes the uri and csid fields to help facilitate access to individual records:

Code Block
<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<ns2:loansin-common-list xmlns:ns2="http://collectionspace.org/services/loanin">
  <loanin-list-item>
  ....  <loanInNumber>LI2010.05</loanInNumber>
    <loanReturnDate>2012-01-29</loanReturnDate>
    <uri>/loansin/b59d0c6f-08f2-4fb5-b5f7</uri>
    <csid>b59d0c6f-08f2-4fb5-b5f7</csid>
  </loanin-list-item>
  ....
</ns2:loansin-common-list>