It's all about the answers!

Ask a question

Lifecycle Project Administration REST API CLM 5?


Philipp Selle (1527) | asked Jan 11 '16, 3:10 a.m.
edited Jan 11 '16, 3:11 a.m.
Hi everyone!

Is there a current LPA REST API for CLM 5?
Unfortunately I can not find the entry points for it (https://jazz.net/wiki/bin/view/Main/DraftLPARestAPI are only for 3 and 4 and did not work for version 5).

For the project service I tried the URL provided in the link and also with "jts" in it:
https://server:port/admin/projects and https://server:port/jts/admin/projects
but I don't get a JSON back. Header are set to "Accept: application/json".

I would very much appreciate any help!
Thanks, Philipp.

2 answers



permanent link
Shubjit Naik (1.5k1613) | answered Jan 11 '16, 4:20 a.m.
edited Jan 11 '16, 10:52 a.m.
Hi Philipp,

admin.war is no longer available since 5.0.2.


Comments
Philipp Selle commented Jan 11 '16, 4:47 a.m. | edited Jan 11 '16, 5:23 a.m.

Hi Shubjt,

Thank you for your quick reply.
Your provided URL responses the status 200, it doesn't provide the lifecycle projects thought. The response is a html without useful information (same response as https://server:port/jts/admin/projects) :-(
Header and authorization is set.

Edit: I used the Firefox Plugin RESTClient and REST Easy to submit the GET.
Edit2: Same response in via java code (response.getEntity().getContent())


Shubjit Naik commented Jan 11 '16, 10:47 a.m.

I tried loading the /jts/rootservices URL using the RESTClient on Firefox and found the following URL for LPA projects. Using this URL I can list the user projects:

https://server:port/jts/lifecycle-project/user-projects

Could you try the above URL?


Shubjit Naik commented Jan 11 '16, 10:51 a.m.

 Here is a screenshot:


Philipp Selle commented Jan 12 '16, 3:21 a.m.

https://server:port/jts/lifecycle-project/user-projects  also works for me. Thanks for providing the link.


permanent link
Donald Nong (14.5k614) | answered Jan 11 '16, 7:21 p.m.
I really don't like the implementation of LPA REST API in CLM 5.x - it's all over the place. There is no such an "entry point" that you can construct your URL. You may have found out that the URL can start with /jts/lpa, /jts/lifecycle-project/projects, /jts/lifecycle-projects/user-projects, or something else that we have not discovered yet.

The API is still a "draft". Seeing that there are virtually no movements in the associated work item, my impression is that this API is not being actively developed. I don't really recommend using such API in your production environment.

Comments
Philipp Selle commented Jan 12 '16, 3:26 a.m.

Hi Donald, thank you very much for sharing your experiences.
As there are no official documentations about the API under CLM 5.x and as you mentioned, no progress in the work item, I will try to avoid the use of LPA API in my production environment.

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.