The available APIs are very different between the different versions. Cognos 12.1.3 introduced a few more. So there are a few things here.
REST API could refer to
- Programatically controlling Cognos
- Accessing JSON data sources
The published API (https://www.ibm.com/docs/en/cognos-analytics/12.1.x?topic=api-rest-reference) requires direct access to the dispatcher. If your application is not on the server, you'd need to have a rewrite rule to redirect traffic. https://cognosserver/ibmcognos/bi/api/ would redirect to http//internalservername:9300/api/ Then you could do requests to https://cognosserver/ibmcognos/bi/api/modules to get the list of data modules
12.1.3 introduced the /reports endpoint, allowing you to access outputs in cognos and execute reports.
If they want to use rest endpoints as a datasource, then they need to use the DataDirect connector: https://www.ibm.com/docs/en/cognos-analytics/12.1.x?topic=details-progress-datadirect-autonomous-rest-connections
If you're on an older version of Cognos, it is still possible to do it but a little more complex. You can use the unpublished API, which is a little more dangerous long term as IBM may make changes to those without notice.
I've had a few projects where I've made applications that will log into Cognos with an API key, execute reports and save the outputs into specific folders. Feel free to email me and I can share some of what I've done.
------------------------------
Paul Mendelson Product Manager
Product Manager
PMsquare
------------------------------