From cac20a2c3b09aeff4c044061a983259c3808541d Mon Sep 17 00:00:00 2001 From: Kevin Harper Date: Mon, 17 Jun 2024 13:03:47 -0500 Subject: [PATCH] Add links to API playground --- src/pages/graphql/index.md | 4 ++++ src/pages/graphql/schema/cart/queries/cart.md | 4 ++++ src/pages/graphql/schema/store/queries/store-config.md | 2 ++ 3 files changed, 10 insertions(+) diff --git a/src/pages/graphql/index.md b/src/pages/graphql/index.md index c5eeebba3..66d2e91aa 100755 --- a/src/pages/graphql/index.md +++ b/src/pages/graphql/index.md @@ -22,3 +22,7 @@ The following image shows a sample query, its response, and the GraphQL browser: The Catalog Service, Live Search, and Product Recommendations services have schemas that are independent from the core schema for Adobe Commerce and Magento Open Source. You can find the schema reference documentation and examples for these services in [Storefront Services GraphQL](https://developer.adobe.com/commerce/services/graphql/). + +## Commerce API playground + +The [Commerce API playground](https://experienceleague.adobe.com/developer/commerce/storefront/playgrounds/commerce-services/) enables you to run selected queries against a live instance of Adobe Commerce with Luma sample data. The playground includes example core and Storefront Services queries. You can customize the output of the queries to help you understand the power of our GraphQL APIs. diff --git a/src/pages/graphql/schema/cart/queries/cart.md b/src/pages/graphql/schema/cart/queries/cart.md index 06ce6644b..c7d295de7 100644 --- a/src/pages/graphql/schema/cart/queries/cart.md +++ b/src/pages/graphql/schema/cart/queries/cart.md @@ -22,6 +22,10 @@ The [`cart`](https://developer.adobe.com/commerce/webapi/graphql-api/index.html# ## Sample queries +The [Commerce API playground](https://experienceleague.adobe.com/developer/commerce/storefront/playgrounds/commerce-services/) provides a sample `cart` query that you can run against a live instance of Adobe Commerce with Luma sample data. + +You can convert the hard-coded `cart_id` values in the following sample queries to a [variable](../../../usage/index.md#query-variables) and run them in the API playground. Note that the responses may vary, depending on the configuration of the Commerce instance. + ### Cart ready for checkout The following query shows the status of a cart that is ready to be converted into an order. diff --git a/src/pages/graphql/schema/store/queries/store-config.md b/src/pages/graphql/schema/store/queries/store-config.md index 1390b3145..e314d2a00 100644 --- a/src/pages/graphql/schema/store/queries/store-config.md +++ b/src/pages/graphql/schema/store/queries/store-config.md @@ -16,6 +16,8 @@ The [`storeConfig`](https://developer.adobe.com/commerce/webapi/graphql-api/inde ## Example usage +The [Commerce API playground](https://experienceleague.adobe.com/developer/commerce/storefront/playgrounds/commerce-services/) provides a sample `storeConfig` query that you can run against a live instance of Adobe Commerce with Luma sample data. Note that the responses may vary, depending on the configuration of the Commerce instance. + ### Query a store's configuration The `storeConfig` query can return `base` and `extended` store configuration setting. The following call returns all `base` details of a store's configuration.