It's all about the answers!

Ask a question

REST vs OSLC


Sean F (1.3k252162) | asked Apr 03 '18, 12:33 p.m.

RPE uses the REST interface to query the CLM server for data to publish.
When developing Java customisations to interface with CLM and manipulate data such as artifacts these customisations use the OSLC interface.
The documentation I have read says that the OSLC interface is based on REST.
Is there an article somewhere describing the relationship between these 2 interfaces?
Is one a specialisation of the other or are they essentially the same thing?

One answer



permanent link
Ralph Schoon (63.6k33646) | answered Apr 04 '18, 4:19 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

This is the definition of REST I found using this amazing search engine..... : https://en.wikipedia.org/wiki/Representational_state_transfer

Interfaces can be REST based interfaces.
OSLC when incepted was based on using the REST paradigm.

OSLC CM (RTC work item) is a REST interface, see:
https://www.ibm.com/support/knowledgecenter/en/SSYQQ2_5.3.0/com.ibm.rational.change.admin.doc/topics/ch_r_ha_oslc_cm_rest_api_.html

Rest is a number of rules and patradigms that are used. There can be many interfaces that are conform. What these interfaces  provide can be totally different. They can have rules on top of what REST requests and be specialised on some domain.


Comments
Sean F commented Apr 07 '18, 11:49 a.m. | edited Apr 09 '18, 3:16 a.m.

Thanks Ralph.
In that second link it says that:-

>>With the OSLC-CM REST API, you can work with other tools in the following ways:
>>...
>>Expose CRs to RESTful web service consumers, such as IBM Rational Publishing Engine

I am still not totally clear on the relationship between the 2 interfaces (REST vs OSLC) in Rational CLM
According to the previous documentation I had read I thought RPE used the REST interface which was something slightly distinct from the OSLC interface.
Is it in fact correct to say that RPE uses the OSLC interface?


Donald Nong commented Apr 09 '18, 3:19 a.m.

What matters is not the interface, but rather the implementation. If you are using RPE, I believe you are using the reportable REST API, which is documented here.
https://jazz.net/wiki/bin/view/Main/ReportsRESTAPI

The RTC/CCM OSLC API is documented here.
https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20

You can see the what you can achieve from either API (or interface if you want to call it) is completely different.


Ralph Schoon commented Apr 09 '18, 3:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

In addition REST is a way to specify Web Interfaces.
OSCL builds on the REST specification and defines REST based interfaces.

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.