talk@lists.collectionspace.org

WE HAVE SUNSET THIS LISTSERV - Join us at collectionspace@lyrasislists.org

View all threads

<document> tag needed when using Services REST API

CP
Christopher Pott
Wed, Jan 25, 2012 9:30 AM

Hi,

Another change we've encountered in version 2.0 (although it's probably
older) occurs whilst attempting to use the Services REST API directly
and this is just a heads up for anyone attempting the same.

We've been trying to create 'Person' records via the Services API, and
found that although we could create them, the records were created empty
without any of the requested attributes. The solution was to wrap the
Person xml in a <document> tag, which caused the attributes to be
utilised (maybe an alternative approach to multipart requests).

Regards,

Chris

IT Developer

Statens Museum for Kunst

Hi, Another change we've encountered in version 2.0 (although it's probably older) occurs whilst attempting to use the Services REST API directly and this is just a heads up for anyone attempting the same. We've been trying to create 'Person' records via the Services API, and found that although we could create them, the records were created empty without any of the requested attributes. The solution was to wrap the Person xml in a <document> tag, which caused the attributes to be utilised (maybe an alternative approach to multipart requests). Regards, Chris IT Developer Statens Museum for Kunst