Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

DNG OSLC API documentation

Hello all,

I was following the document below, but it seems to be outdated.
https://jazz.net/library/article/1197

I could not get the first catalog, but could not spot the discovery.
oslc_rm:rmServiceProviders rdf:resource="https://grarrc.ibm.com:9443/rm/discovery

Does anyone know the latest version of the doc?

0 votes


Accepted answer

Permanent link
The doc is not out of date as far as we know. But at the time it was provided, it was done to help out with some examples.

The OSLC start off set of discovery calls is always the same and has not changed over time.
The OSLC workshop at https://jazz.net/library/article/635 provides a primer with JAVA samples.

1) rm/rootservices
2) then the rm/oslc_rm/catalog which is where you will find the service providers for each project area
3) rm/<project area ID>/services.xml

From there you can a number of services that you can call and are further elaborated in the 1197 article.

Make sure you are using the right headers.  OSLC-Core-Version: 2.0 and Accept: application/rdf+xml
Kazuki Nobutani selected this answer as the correct answer

0 votes

Comments

Thank you. I followed the steps and I could create and modify artifacts!
However I am stuck at querying. I got the Query Capability (rm/views?oslc.query=true& ...) but GETting identifier=1 or any other id returns 403. Simply GETting the Query Capability also returns 403.
Do you have any idea why this is happening?

I have the following headers:
Accept:application/rdf+xml
Content-Type:application/rdf+xml

oslc:queryBase rdf:resource=
https://XXXX:9443/rm/views?oslc.query=true&projectURL=https%3A%2F%2Fclm.jkebanking.net%3A9443%2Frm%2Fprocess%2Fproject-areas%2F_f9-xsBf9Eeaq75ldznhS0A&vvc.configuration=https%3A%2F%2Fclm.jkebanking.net%3A9443%2Frm%2Fcm%2Fstream%2F_gLXtcBf9Eeaq75ldznhS0A

To get artifact ID 1
&oslc.prefix=dcterms=<http://purl.org/dc/terms/>&oslc.select=*&oslc.where=dcterms:identifier=1

Hello
I think this is because you are not using the right headers. I mentioned this in my previous post:
Make sure you are using the right headers. 
OSLC-Core-Version: 2.0
Accept: application/rdf+xml

1 vote

You are awesome. @ianbarnard you too.
Thank you for your help!


One other answer

Permanent link

I don't think the doc is out of date at that point, but the result may look different from the example shown. You are looking for tag oslc_rm:rmServiceProviders and the rdf:resource will then give you the RM Catalog e.g. (for my test environment, 6.0.5, checked just now)  https://ibmjazz:9443/rm/oslc_rm/catalog - which then gives the list of projects in XML/RDF.

2 votes

Your answer

Register or log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,944
× 516
× 139
× 25

Question asked: Jul 26 '18, 6:03 a.m.

Question was seen: 6,693 times

Last updated: Aug 01 '18, 3:04 a.m.

Confirmation Cancel Confirm