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

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

 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!

0 votes



One answer

Permanent link
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.

0 votes

Comments

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 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,950
× 7,505
× 1,335
× 411

Question asked: Aug 23 '21, 4:17 a.m.

Question was seen: 1,323 times

Last updated: Aug 23 '21, 11:34 a.m.

Confirmation Cancel Confirm