Skip to content

Commit eaf1bbb

Browse files
authored
Merge pull request AdobeDocs#396 from AdobeDocs/ds_graphql
Full-page WebAPI GraphQL API reference
2 parents a498e93 + 75b4f9f commit eaf1bbb

File tree

10 files changed

+73243
-155469
lines changed

10 files changed

+73243
-155469
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
<div id="page" class="drawer-layout">
2+
{{! DO THE NAVIGATION }}
3+
<div id="sidebar">
4+
<div class="sidebar-top-container">
5+
<div id="logo">
6+
{{#if logoData }}
7+
<img src="data:image/png;base64,{{logoData}}" title="{{info.title}}" />
8+
{{else if logoUrl}}
9+
<a href="https://developer.adobe.com/commerce/webapi/graphql/"><img src="{{logoUrl}}" title="{{info.title}}" />
10+
<strong class="spectrum-Heading spectrum-Heading--sizeXXS" style="text-align: center; display: block; color: #FA0F00;">Adobe&nbsp;Developer</strong>
11+
</a>
12+
{{else if logoImageName}}
13+
<img src="images/{{logoImageName}}" title="{{info.title}}" />
14+
{{/if}}
15+
</div>
16+
<button class="close-button" type="button">
17+
<span aria-hidden="true">×</span>
18+
<span class="sr-only">Close menu</span>
19+
</button>
20+
</div>
21+
{{>layout/nav/main}}
22+
</div>
23+
24+
<div id="docs">
25+
{{>layout/nav/mobile-navbar}}
26+
{{>layout/content/main}}
27+
<div class="drawer-overlay"></div>
28+
</div>
29+
</div>

spectaql/config.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,11 @@
66
spectaql:
77
# Optional Boolean indicating whether to omit the HTML <body/> and generate the documentation content only
88
# Default: false
9-
embeddable: true
9+
# embeddable: true
1010

1111
# Optional Boolean indicating whether to embed all resources (CSS and JS) into the same file
1212
# Default: false
13-
oneFile: false
13+
oneFile: true
1414

1515
# Optional path to the target build directory.
1616
# Set to null to not write the output to the filesystem, making it only available via the API (default: public)
@@ -31,7 +31,7 @@ spectaql:
3131
# Optional URL to an image to use in your logo. This string will be provided as-is
3232
# to the HTML output. Should not be used with logoFile and its related options as
3333
# this will take precedence over the logoFile.
34-
# logoUrl: https://yoursite.com/images/logo.png
34+
logoUrl: https://developer.adobe.com/shared/images/adobe-social-share.png
3535
# Control the height of your logo here. Can be useful if your logo is SVG or an
3636
# inappropriate size.
3737
#
@@ -51,7 +51,7 @@ spectaql:
5151
# Optional URL to an image to use in your favicon. This string will be provided as-is
5252
# to the HTML output. Should not be used with faviconFile and its related options as
5353
# this will take precedence over the faviconFile.
54-
# faviconUrl: https://yoursite.com/images/favicon.png
54+
faviconUrl: https://www.adobe.com/favicon.ico
5555

5656
# Optional string specifying a path to a theme directory to use for your build.
5757
#
@@ -439,8 +439,8 @@ info:
439439
# A non-standard array of items to display in your Introduction Area
440440
x-introItems:
441441
# Can be a Title (for the Nav panel) + URL to simply add a link to somewhere
442-
- title: WebAPI guide
443-
url: https://developer.adobe.com/commerce/webapi/
442+
- title: Back to the GraphQL guide
443+
url: https://developer.adobe.com/commerce/webapi/graphql/reference/
444444
# Can be a Title (for the Nav panel) + description (for the Content panel)
445445
# - title: Important thing 1
446446
# description: Some important stuff we wanted you to know. Supports `markdown`
@@ -454,4 +454,3 @@ info:
454454

455455
# If not using introspection.url OR servers[], you need to provide x-url
456456
# x-url: https://yoursite.com/graphql
457-

src/pages/graphql/payment-methods/klarna.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ keywords:
1010

1111
# Klarna payment method
1212

13-
Klarna Payments enables your consumers to try before they buy, finance purchases on your store with Klarna, or let them pay directly. Klarna offers these payment methods through a widget that you can add inline on your checkout page.
13+
[Klarna Payments](https://docs.klarna.com/platform-solutions/e-commerce-platforms/adobe-commerce/payments/kp-overview/) enables your consumers to try before they buy, finance purchases on your store with Klarna, or let them pay directly. Klarna offers these payment methods through a widget that you can add inline on your checkout page.
1414

1515
## Klarna payments workflow
1616

@@ -80,7 +80,7 @@ In order to always present shoppers with the latest available payment options pr
8080

8181
1. The application returns an updated `cart` object.
8282

83-
1. [Reload the widget](https://docs.klarna.com/klarna-payments/integration-best-practices/purchase-experience/) on the client side.
83+
1. [Reload the widget](https://docs.klarna.com/payments/web-payments/integrate-with-klarna-payments/step-2-checkout/#display-klarna) on the client side.
8484

8585
The following diagram describes the workflow:
8686

src/pages/graphql/reference/index.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,11 @@ title: GraphQL API reference
33
description: Review comprehensive reference documentation for the Adobe Commerce and Magento Open Source GraphQL API schema.
44
keywords:
55
- GraphQL
6-
frameSrc: /graphql-api/index.html
6+
# frameSrc: /graphql-api/index.html
77
---
8+
9+
# GraphQL API reference
10+
11+
The Adobe Commerce and Magento Open Source GraphQL API provides a flexible, powerful, and efficient alternative to REST and SOAP web APIs for frontend development. The API is organized around a single GraphQL endpoint that provides access to the full range of Adobe Commerce and Magento Open Source features.
12+
13+
See the following page for the full reference documentation for the Adobe Commerce and Magento Open Source GraphQL API schema: [GraphQL API reference](https://developer.adobe.com/commerce/webapi/graphql-api/).

0 commit comments

Comments
 (0)