We have implemented a 2-way integration with HP ALM 12.5 through REST API in Java., and trying to get the requirement details by Req ID and getting the following response.
405 Method Not Allowed Exception
qccore.method-not-allowedMethod not allowedjavax.ws.rs.WebApplicationException
This occurs when we try to hit the requirements URL (GET) (/qcbin/rest/domains/domain_name/projects/project_name/requirements/req_id) and server URL (qcbin/rest/server). But we are able to get the valid responses through browser and Postman (API Testing Tool) Before hitting the above URLs, we had hit the authentication URL and session URL. And able to authenticate and create QC session with valid responses.
The same code is working for QC version 12. So I would like to know on what may cause this issue and what are the valid/mandatory request headers for the above URLs (It is not very clear in 12.5 documentation).