Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 

 View Only
  • 1.  Cognos Analytics Rest Api/Api-docs 404 not found issue

    Posted Mon October 04, 2021 11:00 AM

    I was using Cognos SDK for development purpose, now I am planning to shift to Cognos analytics server rest API.

    Following documentation, I tried to frame the URL as http://<cognos_analytics_server:port>/api/api-docs, but I ended in 404 not found.

    But when I use /bi/api/api-docs (i.e. http://<cognos_analytics_server:port>/bi/api/api-docs), it's working but I don't find many apis in that swagger.

    Can anyone assist me, why is it showing 404? Do I need to do any additional setup for rest API swagger to work?

    Also attached how my screen looks when I try to access this request http://<cognos_analytics_server:port>/api/api-docs.


    Reference:
    https://stackoverflow.com/questions/69208727/cognos-analytics-rest-api-api-docs-404-not-found-issue



    ------------------------------
    SALMAN KHAN S
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Cognos Analytics Rest Api/Api-docs 404 not found issue

    Posted Mon October 04, 2021 02:51 PM
    Hi Salman,

    You can find all the REST API Reference in here: IBM Docs - IBM Documentation (v11.1.x) or IBM Docs - IBM Documentation (v11.2.x).

    Best regards,

    ------------------------------
    Patrick Neveu
    Consultant
    Positive Thinking Company
    Paris
    ------------------------------



  • 3.  RE: Cognos Analytics Rest Api/Api-docs 404 not found issue

    Posted Tue October 05, 2021 10:12 AM

    Hi Patrick,

    I could find only rest api references there. But my problem is when using my server url with rest api (i.e) http://<cognos_analytics_server:port>/api/api-docs.

    I am getting 404 instead of swagger. So am unable to call any api's from my server. So, do I need to do any other additional setup on server side. I am using cognos 11.1.x version

    Thanks,
    Salman



    ------------------------------
    SALMAN KHAN S
    ------------------------------