AngularAccelerator
A sap-commerce storefront using angular
This is the implementation of B2B, B2C, CMS, Coupons, Interests, Notification and EXT sap-commerce apis
Documentation
How to
private query: 'iphone';
private pageNumber: 0;
private pageSize: 10;
constructor(productService: ProductService) {
productService.search({
query: this.query,
...this.pageSize ? {pageSize: this.pageSize} : {},
...this.pageNumber ? {currentPage: this.pageNumber} : {},
fields: FieldLevelMapping.FULL
}).subscribe(searchResult => console.log(searchResult));
}
Installing
npm install @ngx-y/yapi
Build
ng build yapi --prod
App Requirements
-
for B2C apis
ycommercewebservices
is a minimal requirement in yourlocalextensions.xml
oryocc
for 20.05 -
for B2B apis,
b2boccaddon
is also required orb2bocc
extension starting 20.05 -
for CMS apis,
cmsoccaddon
is required orcmsocc
extension starting 20.05 -
for the rest
acceleratorwebservicesaddon
but other addons might be needed. Please consult sap documentation -
for notifications
notificationocc
starting 20.05 -
for customer interest
customerinterestsocc
starting 20.05 -
for customer coupons
customercouponocc
starting 20.05 -
oauth2
extension is needed for auth