1

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

404errorscreenshot

Phil Dukhov
  • 67,741
  • 15
  • 184
  • 220
  • When you say "when I use /bi/api/api-docs (i.e. http:///bi/api/api-docs), it's working but I don't find many apis in that swagger," do you see fewer than the APIs shown on the [REST API Reference](https://www.ibm.com/docs/en/cognos-analytics/11.1.0?topic=api-rest-reference)? I think the URL you are using is correct and the REST API is simply much more limited at the moment than the SOAP SDK. It is possible that you are simply seeing what is currently available. – aTotalStranger Nov 07 '21 at 03:47

0 Answers0