INSERT_UPDATE InboundChannelConfiguration; integrationObject(code)[unique = true]; authenticationType(code);
;CustomerProductReview;OAUTH;
$oAuthPassword=odata1234
INSERT_UPDATE Employee;uid[unique=true];password;groups(uid);
;ODATAUSER;$oAuthPassword;integrationadmingroup;
$START_USERRIGHTS; ; ; ; ; ; ; ; ;
Type ; UID ; MemberOfGroups ; Password ; Target ; read ; change ; create ; remove ; change_perm
UserGroup ; integrationadmingroup ; ; ; ; ; ; ; ;
# Access Rights for integrationadmingroup Users ;;;;;;;;;
; ; ; ; CustomerReview ; + ; + ; + ; + ; +
; ; ; ; Product ; + ; + ; + ; + ; +
; ; ; ; CustomerReviewApprovalType ; + ; + ; + ; + ; +
; ; ; ; Catalog ; + ; + ; + ; + ; +
; ; ; ; CatalogVersion ; + ; + ; + ; + ; +
; ; ; ; Language ; + ; + ; + ; + ; +
; ; ; ; User ; + ; + ; + ; + ; +
; ; ; ; Address ; + ; + ; + ; + ; +
$END_USERRIGHTS; ; ; ; ;
INSERT_UPDATE IntegrationClientCredentialsDetails;clientId[unique = true];resourceIds;authorities;clientSecret;registeredRedirectUri;user(uid);
;odatauser-client;hybris;ROLE_INTEGRATIONADMINGROUP;$oAuthPassword;{ccv2.services.api.url.0}/authorizationserver/oauth/token;ODATAUSER;
INSERT_UPDATE ExposedOAuthCredential;id[unique=true];oAuthClientDetails(clientId);password
;odatauser-client;odatauser-client;$oAuthPassword
# Set up environment variables
# OSX
export CCHOST={your-sap-commerce-cloud-host}
export CLIENT_SECRET={client secret configured in projectdata-register-integration-object.impex}
# Windows PowerShell
$CCHOST={your-sap-commerce-cloud-host}
$CLIENT_SECRET={client secret configured in projectdata-register-integration-object.impex}
# Get OAuth2 token
curl -X POST -d "client_id=odatauser-client&client_secret=$CLIENT_SECRET&grant_type=client_credentials" https://$CCHOST/authorizationserver/oauth/token
## Extract access_token from response
#Call Integration API
curl -L -X GET https://$CCHOST/odata2webservices/CustomerProductReview/CustomerReviews -H 'Accept: application/json' -H 'Authorization: Bearer {your access_token}'
INSERT_UPDATE Endpoint;id[unique=true];name;version[unique=true];description;specUrl;specData;extensionName
;cc-customerreview;CC Customer Review v1;v1;"Commerce Cloud OData Customer Review Service v1";{ccv2.services.api.url.0}/odata2webservices/CustomerProductReview/$metadata;;odata2webservices
INSERT_UPDATE ExposedDestination;id[unique=true];url;endpoint(id)[unique=true];additionalProperties(key,value)[map-delimiter=|];destinationTarget(id)[default=Default_Template];active[default=true];credential(id)
;cc-customerreview;{ccv2.services.api.url.0}/odata2webservices/CustomerProductReview;cc-customerreview;;;;odatauser-client
INSERT_UPDATE IntegrationObject; code[unique = true]; integrationType(code)
; CustomerProductReview; INBOUND
INSERT_UPDATE IntegrationObjectItem; integrationObject(code)[unique = true]; code[unique = true]; type(code); root[default = false]; itemTypeMatch(code)
; CustomerProductReview ; Product ; Product ; ; ALL_SUB_AND_SUPER_TYPES ;
; CustomerProductReview ; CustomerReviewApprovalType ; CustomerReviewApprovalType ; ; ALL_SUBTYPES ;
; CustomerProductReview ; User ; User ; ; ALL_SUB_AND_SUPER_TYPES ;
; CustomerProductReview ; Language ; Language ; ; ALL_SUB_AND_SUPER_TYPES ;
; CustomerProductReview ; CatalogVersion ; CatalogVersion ; ; ALL_SUB_AND_SUPER_TYPES ;
; CustomerProductReview ; CustomerReview ; CustomerReview ; true ; ALL_SUB_AND_SUPER_TYPES ;
; CustomerProductReview ; Catalog ; Catalog ; ; ALL_SUB_AND_SUPER_TYPES ;
INSERT_UPDATE IntegrationObjectItemAttribute; integrationObjectItem(integrationObject(code), code)[unique = true]; attributeName[unique = true]; attributeDescriptor(enclosingType(code), qualifier); returnIntegrationObjectItem(integrationObject(code), code); unique[default = false]; autoCreate[default = false]
; CustomerProductReview:Product ; code ; Product:code ; ; true ;
; CustomerProductReview:Product ; catalogVersion ; Product:catalogVersion ; CustomerProductReview:CatalogVersion ; true ;
; CustomerProductReview:CustomerReviewApprovalType ; code ; CustomerReviewApprovalType:code ; ; true ;
; CustomerProductReview:User ; uid ; User:uid ; ; true ;
; CustomerProductReview:Language ; isocode ; Language:isocode ; ; true ;
; CustomerProductReview:CatalogVersion ; version ; CatalogVersion:version ; ; true ;
; CustomerProductReview:CatalogVersion ; catalog ; CatalogVersion:catalog ; CustomerProductReview:Catalog ; true ;
; CustomerProductReview:CustomerReview ; alias ; CustomerReview:alias ; ; ;
; CustomerProductReview:CustomerReview ; user ; CustomerReview:user ; CustomerProductReview:User ; true ;
; CustomerProductReview:CustomerReview ; approvalStatus ; CustomerReview:approvalStatus ; CustomerProductReview:CustomerReviewApprovalType ; ;
; CustomerProductReview:CustomerReview ; headline ; CustomerReview:headline ; ; ;
; CustomerProductReview:CustomerReview ; comment ; CustomerReview:comment ; ; ;
; CustomerProductReview:CustomerReview ; product ; CustomerReview:product ; CustomerProductReview:Product ; true ;
; CustomerProductReview:CustomerReview ; rating ; CustomerReview:rating ; ; ;
; CustomerProductReview:CustomerReview ; blocked ; CustomerReview:blocked ; ; ;
; CustomerProductReview:CustomerReview ; language ; CustomerReview:language ; CustomerProductReview:Language ; ;
; CustomerProductReview:CustomerReview ; creationtime ; CustomerReview:creationtime ; ; true ;
; CustomerProductReview:Catalog ; id ; Catalog:id ; ; true ;
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
10 | |
10 | |
9 | |
9 | |
8 | |
8 | |
6 | |
5 | |
5 | |
5 |