Default Routes
Spartacus-mock comes with a set auf default routes. These routes are used for the handlers that are provided by spartacus-mock. The routes cover all OCC Api Calls that are done by spartacus covering the features mentioned in the feature scope.
You can use those routes to define your own handler for a certain route.
Please note: if you need to enhance the route or add custom parameters, you need to define the route yourself.
Base Calls | Explanation |
---|---|
| Route for the baseSites call being done by spartacus on application startup |
| Route for the languages call being done by spartacus on application startup |
| Route for the currencies call being done by spartacus on application startup |
| Route for the titles call being done by spartacus when showing the address form |
| Route for the countries call being done by spartacus when showing the address form |
| Route for the regions call being done by spartacus when showing the address form |
| Route for the i18n call to load the translations from the backend. The route is defined with the value |
User related Calls | Explanation |
---|---|
| Route for the login call to the authorizationserver |
| Route for the logout call to the authorizationserver |
| Route for the users call to create a new user during registration |
| Route for the user call to get the user details after login |
| Route for the call to get the consent templates for the current user |
| Route for the call to get the notification preferences for the current user |
| Route for the call to get the product interests for the current user |
| Route for the call to get the customer coupons for the current user |
| Route for the call to get the addresses for the current user |
| Route for the call to get the payment details for the current user |
| Route for the call to get execute the address verification for the current user |
CMS Calls | Explanation |
---|---|
| Route for the call to get the page data (basic page data & slots with components) for the current page |
| Route for the call to get the component data (spartacus does this call with aggregated component Uid's) |
Product Calls | Explanation |
---|---|
| Route for the call to get the product references for the current product (works on product detail page) |
| Route for the call to get the product references for the current product (works on product detail page) |
| Route for the call to search for products and return a productSearchPage Object |
| Route for the call to search for text based product suggestions |
| Route for the call to load the product details |
Cart Calls | Explanation |
---|---|
| Route for the call to load the carts for a user. The returned array can contain multiple (normal, wishlist, selective) carts. |
| Route for the call to load the cart data for a certain cartId |
`addEntries | Route for the call to add an entry to cart |
| Route for the call to update an entry in the cart |
| Route for the call to remove an entry from the cart |
| Route for the call to delete a cart |
| Route for the call to set an email on the cart (needed for guest checkout) |
| Route for the call to add a voucher on the cart |
| Route for the call to remove a voucher from the cart |
| Route for the call to validate the cart |
| Route for the call to save a cart as wishlist cart for user logging in and not having a wishlist cart yet |
Checkout Calls | Explanation |
---|---|
| Route for the call to set a delivery address on the cart during checkout |
| Route for the call to create a new delivery address on the cart during checkout |
| Route for the call to remove a delivery address on the cart during checkout |
| Route for the call to set a delivery mode on the cart during checkout |
| Route for the call to get all available delivery modes |
| Route for the call to get all available card types for payment |
| Route for the call to get the payment provider sub info when using an integrated payment provider (default spartacus) |
| Route for the call to create a new payment method |
| Route for the call to set an existing payment method on the cart |
| Route for the call to get the mock sop payment response (html page) |
Order Calls | Explanation |
---|---|
| Route for the call to place the order |
| Route for the call to load the orders for a user |
| Route for the call to load the order details for an order |
| Route for the call to cancel an order |
| Route for the call to return an order |
| Route for the call to load the order returns |
| Route for the call to load the the order return details |
| Route for the call to cancel an order return |
Account Calls | Explanation |
---|---|
| Route for the call to restore a saved cart |
| Route for the call to clone a saved cart |
| Route for the call to get a saved cart |
| Route for the call to change / delete an address |
| Route for the call to delete an payment type |
| Route for the call to update the user password |
| Route for the call to update the user id (email) |
| Route for the call to delete a previously given consent |
| Route for the call to get all consents of a user |
| Route for the call to get the notification preferences of a user |
Store Finder Calls | Explanation |
---|---|
| Route for the call to get the number of stores |
| Route for the call to get the stores |
| Route for the call to get the store details |
Last updated