It's all about the answers!

Ask a question

Fetch all artifacts from DNG Baseline in GC Context using OSLC


Mike L (114) | asked Jun 19 '19, 1:25 a.m.

 Hello All,


Do we have OSLC support to fetch all artifacts from a baseline on DNG in GC context? If yes, please do help.

Thanks

3 answers



permanent link
Cristobal Sandoval (862) | answered Jun 28 '19, 3:52 p.m.

 Yes, the OSLC REST API for DNG  allows to filter by a given configuration (like a baseline or stream) with the  oslc_config.context parameter

For more information and examples, please refer to this wiki

I added a baseline to a gc and was able to query the resources with a request like this 



permanent link
Mike L (114) | answered Jul 03 '19, 7:26 a.m.
edited Jul 03 '19, 7:27 a.m.
i tried the format on rest client with below headers, but no luck. PFA error message.

Headers:
OSLC-Core-Version : 2.0
Accept : application/xml

Error:

  1. Status Code: 404 Not Found
  2. Connection: Keep-Alive
  3. Content-Encoding: gzip
  4. Content-Language: en-US
  5. Content-Type: application/xml
  6. Date: Wed, 03 Jul 2019 11:23:15 GMT
  7. Keep-Alive: timeout=10, max=100
  8. Strict-Transport-Security: max-age=63072000; includeSubDomains; preload
  9. Transfer-Encoding: chunked
  10. Vary: Accept-Encoding
  11. X-Powered-By: Servlet/3.1


permanent link
Cristobal Sandoval (862) | answered Jul 03 '19, 8:39 a.m.
I tried the url in a web browser and got the xml.
Is the baseline contributing to the gc? You can also pass the gc url in the oslc_config.context like this


but i believe it will return also items from other configurations contributing to the gc and you would have to filter the information you want from there.

Comments
Mike L commented Jul 04 '19, 1:26 a.m.
But however the oslc_config.context here is referring to GC and not to a baseline. The same query when run against a baseline doesnt work.

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.