Reponse content from RRC DNG API
Hello.
I have 2 queries from this blog https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI#Configurations (Provide Artifact history)
-
What is meaning of resource URI here in this api (https://server:port/rm/publish/resources?resourceURI=_c1cm0L3VEeCPFbe791FOoQ&history=true) is it artifact UUID ?
- What will be the content i will get in response to above API ? will i get Changeset details as well? because in blog, the description of Provide Artifact history is written in very generalized fashion
Thank you
2 answers
1.. As Rakesh says, yes it's the UUID
2..Try it for yourself. As of 7.0.2 you get history as a series of <history:changelog> tags with various content about the change. For opt-in projects you seem to get a link to the changeset abut I don't know if you'll get any useful info from that URL - the key points are already in the output: who made the change, when, what the new value is what the previous value is, etc.
One of the very convenient things about the DOORS Next Reportable REST API is that it doesn't need any special headers - if needed you can include the configuration in the URL and open it in a browser tab and you'll see the XML results, although bear in mind if the results exceed one page you'll only see the first page. If results are paged the ds:datSource tag contains attributes:
rel="next"
and your code simple GETs from the href URL (unmodified).