It's all about the answers!

Ask a question

How to get the artifact using REST API


Ravi Kalikate (1616) | asked Apr 01 '15, 6:27 a.m.

Hi,

I am finding REST API for the get artifact using C# code. but not able to get proper URL(For REST) for the artifact.

Ca any one help on this.

Thanks

2 answers



permanent link
Robert Wen (690412) | answered Apr 02 '15, 11:45 a.m.
Usually the URL is in the following form: https://<server and port if applicable>/rm/resources/<identifier for the artifact>

It will be identical to the URL that shows up when you go to the artifact and click the "Show Permalink" icon.

Hope this helps

bob


permanent link
Bas Bekker (1.4k4) | answered Apr 02 '15, 3:20 p.m.
JAZZ DEVELOPER
edited Apr 02 '15, 3:23 p.m.
The proper way to interact using a REST API and getting artifacts using external apps and tools is using the Open Services for Lifecycle Collaboriation (OSLC) public API.

You can get started by looking at this Jazz article that links to the OSLC workshop, which is a great way to get going with the OSLC REST API.
The workshop document shows you how to navigate through the REST API and URL's; querying for artifacts, getting artifacts, updating artifacts, getting the project properties as which artifacts types are defined and their attributes etc.
The code samples are in Java, but are simple so should be easy to translate to C#.

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.