It's all about the answers!

Ask a question

REST API DNG Query


Fabian Weiss (155) | asked Apr 21 '20, 12:14 p.m.
edited Apr 21 '20, 1:46 p.m. by Fariz Saracevic (904613)

 Hi all,


I have two projects in DNG. 
Now I will make a query for more ids https://.../resources/resourceURI=id1Project1, id2Project1,...,id1Project1,id2Project2...
That's not working. I will only get the artifacts from project1, the artifacts from project2 are cut. Is there a way to get some artifacts of two different projects in one query?

...resourceURI=id1Project1&projectURI=project1Id is also not working.

Many thanks.

One answer



permanent link
Subramanya Prasad Pilar (4.6k16) | answered Apr 22 '20, 12:28 a.m.
Can you try either of the following?
https://server:port/rm/publish/resources?projectURI=id1,id2
https://server:port/rm/publish/resources?projectName=name1,name2

Comments
Fabian Weiss commented Apr 22 '20, 1:43 a.m.

Dear Subramanya,


Thanks for your answer, but I Don‘t Need the projects, I Need some artifacts (requirements) of two different projects, req1FromProject1, req2FromProject1, req1FromProjet2 and so on.
Sorry, ist seems, I misrepresented that.


Subramanya Prasad Pilar commented Apr 22 '20, 2:39 a.m. | edited Apr 22 '20, 2:43 a.m.

No issues. By the way, the URIs mentioned should give all artifacts (resources) from 2 different projects.


Fabian Weiss commented Apr 22 '20, 2:47 a.m.

Thanks, but the projects have really much artifacts. I only need some of them of project1 and some of project2. 

To get ALL in two projects in one query is to slow. 

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.