Quantcast
Channel: Quality Center / ALM Practitioners Forum topics
Viewing all articles
Browse latest Browse all 5491

ALM 12 REST API Error

$
0
0

I am trying out HP ALM 12 and found REST api has changed but I could not figure out how to get it to work with the java code that works fine with ALM 11.5.

 

With ALM 11.5 I send following http requests:

 

http://myALM:8000/qcbin/rest/is-authenticated (which calls /authenticate)http://myALM:8000/qcbin/rest/domains/DEFAULT/projects/DEMO/requirements?login-form-required=y&fields=father-name,name,req-priority,request-status,description,name,status&query={status[NOT%20N/A]}

Everything works fine above.

 

With ALM 12, its REST documentation said that I need to explicitly call /rest/site-session resource to obtain the QCSession (which was returned automatically in ALM 11.5 at the first call to any resource), but I could not get the call to return QCSession. Below is the list of http requests sent in order to ALM 12:

 

http://myALM:8000/qcbin/rest/is-authenticated (which calls authenticate)http://myALM:8000/qcbin/rest/site-sessionhttp://myALM:8000/qcbin/rest/domains/DEFAULT/projects/DEMO/requirements?login-form-required=y&fields=father-name,name,req-priority,request-status,description,name,status&query={status[NOT%20N/A]}

 

The call to rest/site-session returns JSESSIONID as if it was the first request and obviously the rest of the code just failed.

What am I doing wrong here?

 

 


Viewing all articles
Browse latest Browse all 5491

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>