Podcast
Questions and Answers
Which of the following best describes the primary purpose of the Storefront API?
Which of the following best describes the primary purpose of the Storefront API?
What is a key feature of the Administrative API?
What is a key feature of the Administrative API?
When signing into Configured Commerce, which two requests must be made?
When signing into Configured Commerce, which two requests must be made?
Which HTTP method is most likely used for retrieving product details through the Storefront API?
Which HTTP method is most likely used for retrieving product details through the Storefront API?
Signup and view all the answers
What does connected commerce allow in the context of Configured Commerce?
What does connected commerce allow in the context of Configured Commerce?
Signup and view all the answers
Which feature enhances the robustness and flexibility of the Storefront API?
Which feature enhances the robustness and flexibility of the Storefront API?
Signup and view all the answers
Which function is NOT part of the basic commerce workflow using the Storefront API?
Which function is NOT part of the basic commerce workflow using the Storefront API?
Signup and view all the answers
How does the Storefront API support developers in enhancing the platform?
How does the Storefront API support developers in enhancing the platform?
Signup and view all the answers
What type of HTTP request is used to retrieve product details?
What type of HTTP request is used to retrieve product details?
Signup and view all the answers
What is required in the 'beforeSend' function for AJAX requests?
What is required in the 'beforeSend' function for AJAX requests?
Signup and view all the answers
Which method is used to add a product to the wishlist after creating it?
Which method is used to add a product to the wishlist after creating it?
Signup and view all the answers
What is the format of the product ID used in the API request?
What is the format of the product ID used in the API request?
Signup and view all the answers
What information must be included when creating a wishlist?
What information must be included when creating a wishlist?
Signup and view all the answers
What is the primary purpose of the 'success' callback function in AJAX requests?
What is the primary purpose of the 'success' callback function in AJAX requests?
Signup and view all the answers
Which property is used to specify the data type expected from the server in an AJAX request?
Which property is used to specify the data type expected from the server in an AJAX request?
Signup and view all the answers
What element is necessary to reference an existing wishlist when adding products to it?
What element is necessary to reference an existing wishlist when adding products to it?
Signup and view all the answers
What type of request is used to create a session in the Configured Commerce application?
What type of request is used to create a session in the Configured Commerce application?
Signup and view all the answers
What is the purpose of the 'beforeSend' function in the AJAX requests?
What is the purpose of the 'beforeSend' function in the AJAX requests?
Signup and view all the answers
Why might the retrieve product catalog request not include an access token?
Why might the retrieve product catalog request not include an access token?
Signup and view all the answers
What action should be taken with the access token upon a successful login?
What action should be taken with the access token upon a successful login?
Signup and view all the answers
Which endpoint is used to retrieve all product categories?
Which endpoint is used to retrieve all product categories?
Signup and view all the answers
What would typically be included in the data object of the session creation request?
What would typically be included in the data object of the session creation request?
Signup and view all the answers
What HTTP method is used to retrieve the product catalog?
What HTTP method is used to retrieve the product catalog?
Signup and view all the answers
What is the likely function of the 'success' callback in the AJAX requests?
What is the likely function of the 'success' callback in the AJAX requests?
Signup and view all the answers
What is the method used to add a product to the shopping cart?
What is the method used to add a product to the shopping cart?
Signup and view all the answers
Which URL is used to change the quantity of a product in the shopping cart?
Which URL is used to change the quantity of a product in the shopping cart?
Signup and view all the answers
What type of data is expected when submitting the order?
What type of data is expected when submitting the order?
Signup and view all the answers
Which method is used to change an existing cart item's quantity?
Which method is used to change an existing cart item's quantity?
Signup and view all the answers
What will the 'beforeSend' function do in the AJAX calls?
What will the 'beforeSend' function do in the AJAX calls?
Signup and view all the answers
What is logged in the success callback after an item is added to the shopping cart?
What is logged in the success callback after an item is added to the shopping cart?
Signup and view all the answers
What is the purpose of the 'dataType: json' line in the AJAX requests?
What is the purpose of the 'dataType: json' line in the AJAX requests?
Signup and view all the answers
For which action is the data variable structured with product ID and quantity ordered?
For which action is the data variable structured with product ID and quantity ordered?
Signup and view all the answers
Study Notes
Configured Commerce REST APIs
- The Configured Commerce REST API is built on RESTful-based services using JSON objects interacting with Configured Commerce data.
- The Storefront API uses HTTP verbs for its objects and methods.
- The Storefront API was designed with the following considerations in mind:
- Connecting to Configured Commerce from other platforms (connected commerce).
- Allowing developers to build services around the API for a developer-friendly, flexible, and modern experience.
- Providing seamless upgrades.
- Building a facade in front of the application to allow for improvements with minimal interruption.
- Scalability.
- The Storefront API focuses on delivering digital commerce functionality for:
- Viewing products related to a website.
- Adding products to a user's cart.
- Working with user account information.
- The Administrative API provides data-level access to all objects in the Configured Commerce platform.
- The Administrative API is used to integrate other platforms that require access to all objects in Configured Commerce, not just those within a specific user or website context.
- The Storefront API includes a basic digital commerce workflow using jQuery:
- Signing In and Creating a B2B Session requires two requests: one to authenticate with Identity Server and a second to create a Configured Commerce session.
- Retrieving the Product Catalog retrieves products available in the current context (e.g., user, customer, website). This request may not require authentication.
- Retrieving All Categories fetches all categories.
- Searching for Products using a query allows users to search the product catalog using a text query.
- Retrieving Product Details displays the details of a specific product.
- Creating a Wishlist and Adding a Product to it involves two steps: creating a wishlist and adding a product to the newly created wishlist.
- Adding Products to the Shopping Cart allows users to add products to their cart with a quantity.
- Changing the Quantity of a Product in the Shopping Cart allows users to adjust the quantity of products in their cart.
- Submitting an Order finalizes the order using the updated cart with shipping information, payment method, and other details.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.
Related Documents
Description
This quiz covers the key components and functionalities of the Configured Commerce REST APIs. It focuses on the Storefront API and Administrative API, highlighting their integration capabilities, digital commerce functionality, and scalable architecture. Test your knowledge of how these APIs enhance the developer experience and facilitate connected commerce.