Using Postman Collections
Environment Variables
The following environment variables should be set in the ‘bireporting.postman_environment.json’ file (https://github.com/opentext/MBIR)
api_host
: Host URL (eg. https://dev.ca.api.opentext.com )tenant_id
: Tenant IDuser_name
: Core Intelligence subscription usernametenant_user_password
: User passwordext_mbir_app_confclientid
: Client ID for the extended Appext_mbir_confclient_secret
: Client Secret for the extended Applocale
: Locale
Contact your tenant admin to obtain the values for #1, #2, #5 and #6. Select the value for #7 and provide your subscription credentials for #3 and #4.
Sample Requests
Refer to the ‘bireporting_service_collection.postman_collection.json’ to try out the sample requests (https://github.com/opentext/MBIR)
As a prerequisite to run the Collection, execute these steps first:
POST /oauth2/token
(Get authentication token)GET /contents/folders/items
(Return list of files and folders in the root folder)POST /contents/files/upload
(Upload a file)- Switch to “Body” tab of “upload” API and delete the existing “ClassicModelsPredefinedMeasures.data” file by clicking on the x.
- Select the provided “ClassicModelsPredefinedMeasures.data” file
- Click the Send button of above upload API
Steps 2 and 3 are required for the Headless BI and Declarative BI APIs in the Collection
To execute the Big Data APIs in the Collection:
Add the GCS bucket details i.e., bucketFolderPath
, accessId
and accessSecret
in the “Body” tab of the API request.
This step is required to execute the POST/bigdata/inputfile-metadata
and POST/bigdata/tables/import
APIs.