If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

api/api-docs web access issues

Started by ITEvilWoman, 14 Jan 2022 09:45:32 AM

Previous topic - Next topic

ITEvilWoman

Hey all,

I'm currently trying to set up a solution to allow one of our clients to automatically load their branded theme into Cognos. Technically this should be possible with the REST API but I'm having major issues even accessing it on their systems. When I try to connect to http://<cognos_analytics_server>:<port>/api/api-docs on the server (with the right dispatcher and port) it just keeps flagging up SRVE0190E: File not found: /api/api-docs in the log file. I can't find anything that tells me how to potentially rectify this. It's driving me potty. Any help would be appreciated. Thanks  :)

CognosPaul

Is the cognos_analytics_server the gateway or dispatcher? I've had a lot of trouble with the api which trying to use it through the gateway instead of directly against a dispatcher.

ITEvilWoman

Hey CognosPaul. Thanks for the response. 2 environments one set up direct on the dispatcher one is set up through a web server. I've tried both set ups and all the different servers for each. I did have some partial success by changing the address to http://<server>:<port>/bi/api/api-docs/ but although the tab name comes up with Swagger UI it's just a blank screen that's coming back. There is a frustrating lack of documentation on it.

CognosPaul

With the blank screen with the correct tab name, can you open the dev toolbar to the network tab?

Once the page loads it should attempt to load swagger.json. Can you see if it's stalling there? What happens if you load http://<server>:<port>/bi/api/api-docs/swagger.json

ITEvilWoman

sorry for the delayed response. I'm also going 10 rounds with a Transformer cube  ;D That has brought up the swagger json file I can read it and see the options in there.