How can I modify modules in DNG using API?
I have a module with many requirements and some of them have the status obsolete. For the requirements with the status obsolete all links attached to it shall be deleted.
If I perform a GET-Request I receive the response which is in my case a XML representation of the module.
Now if I try to perform a PUT-Request with the XML I modified to the URL I receive an Error Code 405 (stating that the method PUT is not supported).
Now if I try to perform a PUT-Request with the XML I modified to the URL I receive an Error Code 405 (stating that the method PUT is not supported).
I am using RRCReportableRestAPI.
I would be thankful for any help.
I would be thankful for any help.
2 answers
The DNG Reportable REST API is a READ-Only API as far as I can tell. There are other APIs that you could use, gor example the module API or the OSLC API. Here the links to the documented APIs: https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding
Comments
As Ralph says, the DOORS Next Reportable REST API is read-onl, so PUT won't work, nor POST.
DOORS Next has a specific API for modules you can find more details through https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding
NOTE The Module API needs a specific header DoorsRP-Request-Type: Public 2.0 (yes, capitalised like that) and DO NOT provide header OSLC-Core-Version 2.0.
You'll probably use the Process and OSLC RM or OSLC Query APIs to find the module URL. These need header OSLC-Core-Version: 2.0 and NOT the DoorsRP-Request-Type header.