It's all about the answers!

Ask a question

DNG REST URL for folder level view


M K (30338) | asked Jul 16, 10:38 a.m.

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:


Anyone?


Comments
Ralph Schoon commented Jul 16, 11:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

These are our APIS: https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding

This is the documentation for the API, I believe you are using: https://jazz.net/wiki/bin/view/Main/DNGReportableRestAPI

I don't know if that API supports folders.

This is where you could find other information: https://www.google.com/search?q=dng+folder+API+site%3Ajazz.net 


M K commented Jul 18, 3:10 a.m.

and that's why this forum is neigh useless...


Ralph Schoon commented Jul 18, 5:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

API questions are inherently hard and there is no way that people know all the answers. You should be happy with whatever you can get. And if you are seemingly unwilling to follow suggestions where to look for answers, e.g. follow the search link above, you should not complain about the forum.


M K commented Jul 18, 5:33 a.m.

your title includes Jazz Developer and you're telling me there's no way to know what your REST API is capable of?

4 answers



permanent link
Bhagath P B (4438) | answered Jul 18, 3:38 a.m.

Hi M K,


I believe it is not possible to get content from Folderlevel view since reportable REST API looks for ModuleURI or resourceURI or a ViewURI.


permanent link
Ralph Schoon (63.5k33646) | answered Jul 18, 5:13 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

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


Comments
M K commented Jul 18, 5:24 a.m.

ok... but your title includes Jazz Developer 

so... can't you like look in the code or something?


Ralph Schoon commented Jul 20, 9:46 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Sure, I can look  into the code. How would I know where to look? How would that help? I am also not a DNG developer.


permanent link
M K (30338) | answered Jul 20, 3:07 a.m.
edited Jul 20, 3:07 a.m.

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


permanent link
Ian Barnard (2.3k613) | answered Jul 22, 4:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
edited Jul 22, 6:16 a.m.

Please be polite: impatience with people trying to help you isn't a good look.


Find your own answer.


Comments
M K commented Jul 22, 6:07 a.m.
you're confusing directness with rudeness. i asked a question and the response i got from a "Jazz Developer" was a couple moldy, ugly documents and to "Google it". so i asked follow up questions based on the fact the person has "Jazz Developer" in their title. does that not indicate they have some knowledge of the code?

look at this from my point of view: my employer spends a lot of money on DNG and the "help" i get on its forum from a Jazz Developer is "Google it"? 

Ralph Schoon commented Jul 22, 11:36 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

Every IBM Employee with an Jazz.net account is flagged as Jazz Developer. 

This is a forum. Any "help" is voluntary best effort. Please read the guidelines. Nobody has to answer any question here. 

Your answer


Register or to post your answer.


Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.