Re: [Fedora-commons-developers] Using REST to modify a datastream

2008-11-24 Thread Bill Branan
Hi Phil, I agree with James that the TestRESTAPI class and the REST API docs are the best resources for the REST API. To answer your question, if you are just trying to update XML content in a datastream you don't need to do any transformation, just do an PUT to http://host:port/fedora/objects/PID

Re: [Fedora-commons-developers] Using REST to modify a datastream

2008-11-24 Thread Daniel Davis
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

Re: [Fedora-commons-developers] Using REST to modify a datastream

2008-11-21 Thread James Chartrand
Hi Phil, I found two resources very helpful: 1. The TestRESTAPI class in SVN has extremely helpful working examples: http://fedora-commons.svn.sourceforge.net/viewvc/fedora-commons/fedora/tags/release-3.1/src/test/junit/fedora/test/api/TestRESTAPI.java The organization of the code might seem s

[Fedora-commons-developers] Using REST to modify a datastream

2008-11-21 Thread Phil Cryer
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