DNG REST API to get list of components for a project?
2 answers
The Request-Address for getting all components of a project for DNG is:
Comments
have you actually used that successfully?
Thanks Antje. I think M K meant to also say "thank you for trying to help".
Works for me.
"i get a 400 response when i adapt that to my server..."
Yes I am using this request in variable widgets for DNG which I have created and it works fine.
1 vote
BTW You shouldn't use hardcoded URLs - use discovery as this is much more robust as DOORS Next and ELM are updated.
Comments
your example gives the same type of URL as Antje and that URL doesn't work for me (Error 400: Bad Request / invalid UUID), which is why i ask if they actually used it. ppl love to quote docs here but i get the feeling no one actually tries it.
Obviously, the example URL's are not accessible over the internet. ppl love to get a readily served example for exactly their question. Unfortunately it is not that simple. Just seeing a URL like GET https://<example-server>/ should be obvious.
touché, but the fact remains that thus far no one has been able to give me an example that i can adapt to my server that works.
What version of DOORS Next are you using?
Those URLs were real (for my private server jazz.ibm.com) when I captured that discovery sequence. Even if the details have changed as long as you follow the discovery sequence I linked to you will get possibly different URLs that are correct for that server.
I had to correct the selector for the project area.
https://elm.example.com:9443/rm/cm/component/ldpc gives me all components for all project areas.
https://elm.example.com:9443/rm/cm/component/ldpc?project=https%3A%2F%2Felm.example.com%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_cOrckM9TEe-lNcbLah5K4w shows the components for the project. You have to provide the URI url encoded.
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Jan 10, 3:02 a.m.You can find the documented ELM APIs here: https://jazz.net/wiki/bin/view/Deployment/ELMProductAPILanding
M K
Jan 10, 3:37 a.m.i can find nothing in that mess of documentation that successfully gives me a list of components from a DNG project. please make sure the answer is in the docs before you post. thanks!