Skip to content

Commit

Permalink
Merge pull request #333 from AdobeDocs/kh_playground
Browse files Browse the repository at this point in the history
Add links to API playground
  • Loading branch information
keharper committed Jun 17, 2024
2 parents 6d9e466 + 8ab9ed9 commit 17648a0
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/pages/graphql/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ The following image shows a sample query, its response, and the GraphQL browser:
<InlineAlert variant="info" slots="text" />

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.
4 changes: 4 additions & 0 deletions src/pages/graphql/schema/cart/queries/cart.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 2 additions & 0 deletions src/pages/graphql/schema/store/queries/store-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 17648a0

Please sign in to comment.