Problem connecting to REST API

  • 1.  Problem connecting to REST API

    Posted 20 days ago
    Dear Reader(s):

    Following the instructions on GitHub and here we are not able to communicate with JAMA on premises. As written in GitHub I tried the following:

     * @package dummy.php
     * Project: CMI Projects V3.00
     * @author M.S.B. Bachus ()
     * @copyright  2011
     * @version 1.00 beta 2011-8-19

    include_once "classes/dBug.php";
    $base_url = "[our-url]/rest/v1/";

    # Username and password should be stored according
    # to your organization's security policies
    $username = "API_USER";
    $password = "our-password";

    $resource = "projects";

    $curl_request = curl_init();
    curl_setopt($curl_request, CURLOPT_USERPWD, "$username:$password");
    curl_setopt($curl_request, CURLOPT_URL, $base_url . $resource);
    curl_setopt($curl_request, CURLOPT_RETURNTRANSFER, True);

    $result = curl_exec($curl_request);

    new dBug($result);
    But nothing worked I have changed the base url with: only [our-url]/, [our-url]/rest/latest/, [our-url]/api-docs/, [our-url]/api-docs/

    The API-USER is created and I already logged in as this person which is possible but still nothing.

    Kind Regards,

    Marcel Bachus
    Innolux Europe B.V