The REST API is not complete and we are collecting critiques before finishing it. We are concerned that adding too much (all API-M functionality) into it will make it too hard to use but it still needs to have the right capabilities. It is identified as "experimental" because there need to be some additions and realignment of the functions. Though it is a good start at a RESTful merger of API-A Lite and API-M functionality it needs more work. The datastream management functionality is incomplete and there is no simple way to manage relations.

As you are thinking about the REST API please also consider adding your analyses/questions to the forum found at: http://fedora-commons.org/confluence/x/VoCF Your insights are greatly appreciated. Most Developers forum pages are open for editing, adding new pages, or comments. Over time we would like to get significant developer threads like this into forums on the FC Wiki too so we can build better "how-to-do" documentation. By next week I should have the FC Developers Forum space be a subscriber to the fedora-commons-developers mailing list to enable easier cross referencing.


--
Daniel W. Davis
Chief Software Architect, Fedora Commons
http://www.fedora-commons.org



Phil Cryer wrote:

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 <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
-------------------------------------------------------------------------
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

Reply via email to