How do I modify a datastream using REST? I dug into it today, and I don't have
a grip on as I thought I did. I searched around and found plenty of
documentation ON the functionality in FC, but not much on exactly how to use
it. Currently I have XML files that need to be entered into Fedora to update
EXISTING objects. Would I convert the XML -> FOXML and the call that file via
a curl command to modify it? I think that's it, but am unsure of exactly how
to do this. I found Matt's documentation on Mediashelf's site, and it lists
this:
curl -i -H "Content-type: text/xml" -XPUT
"http://localhost:8080/fedora/objects/test:02/datastreams/DS1?dsLabel=hello&altIDs=3333"
--data-binary @build.xml -u fedoraAdmin:fedoraAdmin
So I'm assuming I'd plug in my pid, but after that I get lost. I know I want
to use 'modifyObject' somewhere, but my attempts haven't worked. After that,
do I call the XML file (as he's done here with build.xml) for it to update
against, and again, XML or FOXML for that?
Thanks for any advice or docs.
P
--
Phil Cryer | Open Source Lead | Missouri Botanical Garden | skype phil.cryer
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers