In API Center, create a REST API with the Application Integration processes as operations, and then publish the API.
1Log in to API Center.
2Click New > REST API > Create.
3Enter an API name.
The API name must be unique across the location that you specify. You can't change the API name later.
4Select a location to save the API.
5Optionally, enter a description.
6Click Policies > Security. On the right pane, select Create new > OAuth 2.0 to enable OAuth 2.0 authentication for the API.
7Next, add an operation for each Application Integration process that the recipe contains.
8Perform the following steps to create an operation for the Get Product Relationships process:
aIn the Operations area of the REST API page, click +, or on the right pane of the REST API page, click Create a New Operation.
bOn the right pane, click Implementation > Map existing > Browse. Select the Get Product Relationships process.
cOn the right pane, click the Parameters tab and add two parameters with values as described in the following table:
Key
Type
Data Type
Description
Required
MDM_ID
Query
String
Business ID of the product
False
Page
Query
Integer
Page number for paginated results. For the first call, the value must be set to 0. If the customer requests more relationships data, increment the value by 1 for each subsequent call to retrieve the next set of results.
False
dEnter the operation name as GetProductRelationships.
eEnter the operation endpoint URL as /GetProductRelationships?MDM_ID&Page.
fSelect the request method as GET.
gOn the right pane, click the Configuration tab and enter the response timeout value as 100 seconds.
hSave the operation.
9Perform the following steps to create an operation for the Get Product Record Details process:
aIn the Operations area of the REST API page, click +, or on the right pane of the REST API page, click Create a New Operation.
bOn the right pane, click Implementation > Map existing > Browse. Select the Get Product Record Details process.
cOn the right pane, click the Parameters tab and add the MDM_ID parameter with values as described in the following table:
Key
Type
Data Type
Description
Required
MDM_ID
Query
String
Business ID of the product
False
dEnter the operation name as GetProductRecordDetails.
eEnter the operation endpoint URL as /GetProductRecordDetails?MDM_ID.
fSelect the request method as GET.
gOn the right pane, click the Configuration tab and enter the response timeout value as 100 seconds.
hSave the operation.
10Perform the following steps to create an operation for the Search Products process:
aIn the Operations area of the REST API page, click +, or on the right pane of the REST API page, click Create a New Operation.
bOn the right pane, click Implementation > Map existing > Browse. Select the Search Products process.
cEnter the operation name as SearchProducts.
dEnter the operation endpoint URL as /SearchProducts.
eSelect the request method as POST.
fOn the right pane, click the Configuration tab and enter the response timeout value as 100 seconds.
gSave the operation.
11Perform the following steps to create an operation for the Get Customer Relationships process:
aIn the Operations area of the REST API page, click +, or on the right pane of the REST API page, click Create a New Operation.
bOn the right pane, click Implementation > Map existing > Browse. Select the Get Customer Relationships process.
cOn the right pane, click the Parameters tab and add two parameters with values as described in the following table:
Key
Type
Data Type
Description
Required
MDM_ID
Query
String
Unique business ID of the customer used to retrieve the customer relationships
False
Page
Query
Integer
Page number for paginated results. For the first call, the value should be set to 0. If the customer requests more relationships data, increment the value by 1 for each subsequent call to retrieve the next set of results.
False
dEnter the operation name as GetCustomerRelationships.
eEnter the operation endpoint URL as /GetCustomerRelationships?MDM_ID&Page.
fSelect the request method as GET.
gOn the right pane, click the Configuration tab and enter the response timeout value as 100 seconds.
hSave the operation.
12Perform the following steps to create an operation for the Get Customer Record Details process:
aIn the Operations area of the REST API page, click +, or on the right pane of the REST API page, click Create a New Operation.
bOn the right pane, click Implementation > Map existing > Browse. Select the Get Customer Record Details process.
cOn the right pane, click the Parameters tab and add two parameters with values as described in the following table:
Key
Type
Data Type
Description
Required
EntityType
Query
String
Detailed information of the customer
False
MDM_ID
Query
String
Unique business ID of the customer
False
dEnter the operation name as GetCustomerRecordDetails.
eEnter the operation endpoint URL as /GetCustomerRecordDetails?EntityType&MDM_ID.
fSelect the request method as GET.
gOn the right pane, click the Configuration tab and enter the response timeout value as 100 seconds.
hSave the operation.
13Perform the following steps to create an operation for the Identify Customers process:
aIn the Operations area of the REST API page, click +, or on the right pane of the REST API page, click Create a New Operation.
bOn the right pane, click Implementation > Map existing > Browse. Select the Identify Customers process.
cEnter the operation name as IdentifyCustomers.
dEnter the operation endpoint URL as /IdentifyCustomers.
eSelect the request method as POST.
fOn the right pane, click the Configuration tab and enter the response timeout value as 100 seconds.
gSave the operation.
14Validate and save the API.
15Click the Publish icon, enter a name for the published API if needed, and then click Publish.
The API is published. You can now create a managed API from the published API.