It's all about the answers!

Ask a question

Java APIs/sample code snippets for using Global Configuration REST/OSLC APIs


V D (131) | asked Aug 23 '21, 4:17 a.m.

 Hello,


Is there any sample code/utility to use APIs mentioned in https://jazz.net/gc/doc/scenarios from Java code.
I am able to test these APIs using REST Clients but for automation using GET/PUT/POST writing a Java code seems inevitable. Any help in this regards will be helpful. Basic Authentication to GC/GET/PUT/POST Global Configuration samples or references to build code will be really helpful. 

Thanks!

One answer



permanent link
Ralph Schoon (60.9k33643) | answered Aug 23 '21, 11:23 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This example is available on Github and uses Eclipse Lyo as framework:


You end up having to use an HTTP client, but the framework does all the marshalling/unmarshalling for you, if you can get it to work.

Comments
Ralph Schoon commented Aug 23 '21, 11:34 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

It is not GC API, it is DNG API, but the principle applies. This is for OSLC, but can also be adopted to other APIs.

Your answer


Register or to post your answer.