DNG REST URL for folder level view
Can someone give me an example of a DOORS Next (7.0.2 SR1) URL that returns XML results for a folder level view?
I can get the XML for a module filter like this:
https://example.com/rm/publish/views?viewURI=VW_xxx&projectURI=_yyy&moduleUri=MD_zzz&oslc_config.context=https://example.com/gc/configuration/000"
Anyone?
4 answers
I did this: https://www.google.com/search?q=doors+next+folder+api+site%3Ajazz.net (Google that for me....)
And I found inconsistent answers
https://jazz.net/forum/questions/186110/doors-folder-search-with-using-api - says the OSLC API has folder related query capabilities. Those are the first two of a large amount of answers.
I looked at Ians Python client, and he has code to create a folder and an artifact, so it mist be possible somehow. See
https://github.com/IBM/ELM-Python-Client/blob/master/elmclient/examples/dn_simple_createfolderandartifact.py
I looked at Ians Python client, and he has code to create a folder and an artifact, so it mist be possible somehow. See
https://github.com/IBM/ELM-Python-Client/blob/master/elmclient/examples/dn_simple_createfolderandartifact.py
after some experiments what i've found is that you can get a REST API response for a project view, but the result wasn't what i expected.
for example:
https://example.com/rm/publish/modules?viewURI=VW_xxx&projectURI=_yyy&oslc_config.context=https://example.com/gc/configuration/000
- i use the scope parameter "modules", but "resources" seemed to work the same, i need to experiment more to see what the difference is.
- VW_xxx is the view id of a project view
- _yyy is the id for the overall project (not component or stream, project)
- and the link at the end is the global configuration (GC) i'm using
when i run this url through, i get back an XML response that includes only the modules fitting the filter defined in the project view. so that's good. but i get back all the information about each module, not just the columns in the project view as i expected, including a list of artifacts the modules contains. that's annoying because a large module will take a long time and you get MBs of data instead of only the KBs i wanted. annoying, but not terrible because at least i get the info i really wanted: which modules fit the project view filter.
(*) i used the term "folder view" but it appears IBM documentation refers to them as "project views".
Please be polite: impatience with people trying to help you isn't a good look.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 16 '24, 11:46 a.m.M K
Jul 18 '24, 3:10 a.m.Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jul 18 '24, 5:25 a.m.M K
Jul 18 '24, 5:33 a.m.