Deploy and Test Wrapper APIs for Stablecoin

Deploying the Wrapper API Package

Before you can deploy the wrapper API package, you must update the required configuration variables. Some configuration variables have default values, but you must manually update any variable that contains a placeholder as its default value. Configuration variables are stored in the terraform.tfvars file in the wrapper API archive. For more information about deploying wrapper APIs and about configuration variables, see Wrapper APIs in Blockchain App Builder for Oracle Blockchain Platform. The following table lists the configuration variables and their defaults values for the stablecoin wrapper API package.

Variable name Default value Description
compartment_ocid <compartment_ocid> The OCID of the compartment in Oracle Cloud Infrastructure (OCI).
compartment_name <compartment_name> The name of the OCI compartment.
identity_domain <identity_domain> The identity domain to use.
blockchain_channel <blockchain_channel> The name of the Oracle Blockchain Platform channel where the chaincode is deployed.
blockchain_url <blockchain_url> The Oracle Blockchain Platform URL associated with the chaincode deployment.
blockchain_chaincode Stablecoin The name of the chaincode to generate wrapper APIs for.
blockchain_sync true The sync value to include in the payload for API calls.
blockchain_timeout 6000 The timeout value to include in the payload for API calls.
vcn_display_name Stablecoin The display name of the OCI virtual cloud network.
application_display_name Stablecoin The display name of the OCI application.
gateway_display_name Stablecoin The display name of API Gateway.
deployment_display_name Stablecoin The display name of the deployment in API Gateway.
deployment_path_prefix /Stablecoin The deployment path prefix in API Gateway, which specifies the path where routes are deployed. The deployment_path_prefix variable must begin with a slash (/).
ocir_repo_name Stablecoin The OCI Registry repository name. The ocir_repo_name variable must be all lowercase letters.
policy_name Stablecoin The name of the policy that enables controlled management and access to APIs through defined permissions for groups and compartments in the organization
idcs_url <idcs_url> The URL of Oracle Identity Cloud Service (IDCS)
idcs_port <idcs_port> The port number of IDCS

Postman Collection

The Postman collection in the stablecoin wrapper API package includes additional attributes and methods that support the stablecoin chaincode. The following table shows the Postman collection variables that are specific to the stablecoin package.
Variable Description Default value
bc-instance-client-id The client ID of Oracle Blockchain Platform cloud service. bc-instance-client-id
bc-instance-client-secret The client secret of Oracle Blockchain Platform cloud service. bc-instance-client-secret
int-app-client-id The client ID of the Oracle Identity Cloud Service (IDCS) confidential application, which is used to create an IDCS user in the CreateIDCS user API. int-app-client-id
int-app-client-secret The client secret of the IDCS confidential application, which is used to create an IDCS user in the CreateIDCS user API. int-app-client-secret

For more information, see Wrapper API Package Components in Blockchain App Builder for Oracle Blockchain Platform.