Skip to content

Commit 327a358

Browse files
rwinchrstoyanchev
authored andcommitted
remove h2 from index.adoc
1 parent d485fdf commit 327a358

File tree

14 files changed

+201
-232
lines changed

14 files changed

+201
-232
lines changed
Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
1-
* xref:index.adoc[]
2-
** xref:includes/transports.adoc[]
3-
** xref:includes/request-execution.adoc[]
4-
** xref:includes/data.adoc[]
5-
** xref:includes/controllers.adoc[]
6-
** xref:includes/observability.adoc[]
7-
** xref:includes/graalvm-native.adoc[]
8-
** xref:includes/client.adoc[]
9-
** xref:includes/graphiql.adoc[]
10-
** xref:includes/testing.adoc[]
1+
* xref:index.adoc[Overview]
2+
* xref:transports.adoc[]
3+
* xref:request-execution.adoc[]
4+
* xref:data.adoc[]
5+
* xref:controllers.adoc[]
6+
* xref:security.adoc[]
7+
* xref:observability.adoc[]
8+
* xref:graalvm-native.adoc[]
9+
* xref:client.adoc[]
10+
* xref:graphiql.adoc[]
11+
* xref:testing.adoc[]
12+
* xref:boot-starter.adoc[]
13+
* xref:samples.adoc[]
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
[[boot-starter]]
2+
= Boot Starter
3+
4+
Spring Boot provides a starter for building GraphQL applications with Spring for GraphQL.
5+
For version information, see the
6+
https://github.com/spring-projects/spring-graphql/wiki/Spring-for-GraphQL-Versions[Spring for GraphQL Versions] wiki page.
7+
8+
The easiest way to get started is via https://start.spring.io by selecting
9+
"Spring for GraphQL" along with an underlying transport such as Spring MVC of WebFlux over
10+
HTTP or WebSocket, or over RSocket. Refer to the
11+
https://docs.spring.io/spring-boot/docs/current/reference/html/web.html#web.graphql[Spring for GraphQL Starter]
12+
section in the Spring Boot reference for details on supported transports, auto-configuration related
13+
features, and more. For testing support, see
14+
https://docs.spring.io/spring-boot/docs/current/reference/htmlsingle/#features.testing.spring-boot-applications.spring-graphql-tests[Auto-Configured GraphQL Tests].
15+
16+
For further reference, check the following GraphQL related:
17+
18+
- https://docs.spring.io/spring-boot/docs/current/reference/html/actuator.html#actuator.metrics.supported.spring-graphql[Metrics]
19+
- https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#appendix.application-properties.web[Properties]
20+
- https://docs.spring.io/spring-boot/docs/current/reference/html/auto-configuration-classes.html#appendix.auto-configuration-classes.core[Auto-Configuration Classes]
21+

spring-graphql-docs/modules/ROOT/pages/includes/client.adoc renamed to spring-graphql-docs/modules/ROOT/pages/client.adoc

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,15 @@ build time.
1616

1717
To create a `GraphQlClient` you need one of the following extensions:
1818

19-
- xref:includes/client.adoc#client.httpgraphqlclient[HttpGraphQlClient]
20-
- xref:includes/client.adoc#client.websocketgraphqlclient[WebSocketGraphQlClient]
21-
- xref:includes/client.adoc#client.rsocketgraphqlclient[RSocketGraphQlClient]
19+
- xref:client.adoc#client.httpgraphqlclient[HttpGraphQlClient]
20+
- xref:client.adoc#client.websocketgraphqlclient[WebSocketGraphQlClient]
21+
- xref:client.adoc#client.rsocketgraphqlclient[RSocketGraphQlClient]
2222

2323
Each defines a `Builder` with options relevant to the transport. All builders extend
24-
from a common, base GraphQlClient xref:includes/client.adoc#client.graphqlclient.builder[`Builder`] with options
24+
from a common, base GraphQlClient xref:client.adoc#client.graphqlclient.builder[`Builder`] with options
2525
relevant to all extensions.
2626

27-
Once you have a `GraphQlClient` you can begin to make xref:includes/client.adoc#client.requests[requests].
27+
Once you have a `GraphQlClient` you can begin to make xref:client.adoc#client.requests[requests].
2828

2929

3030
[[client.httpgraphqlclient]]
@@ -41,7 +41,7 @@ HttpGraphQlClient graphQlClient = HttpGraphQlClient.create(webClient);
4141
----
4242

4343
Once `HttpGraphQlClient` is created, you can begin to
44-
xref:includes/client.adoc#client.requests[execute requests] using the same API, independent of the underlying
44+
xref:client.adoc#client.requests[execute requests] using the same API, independent of the underlying
4545
transport. If you need to change any transport specific details, use `mutate()` on an
4646
existing `HttpGraphQlClient` to create a new instance with customized settings:
4747

@@ -97,7 +97,7 @@ single, shared connection for all requests to that server. Each client instance
9797
establishes its own connection and that is typically not the intent for a single server.
9898

9999
Once `WebSocketGraphQlClient` is created, you can begin to
100-
xref:includes/client.adoc#client.requests[execute requests] using the same API, independent of the underlying
100+
xref:client.adoc#client.requests[execute requests] using the same API, independent of the underlying
101101
transport. If you need to change any transport specific details, use `mutate()` on an
102102
existing `WebSocketGraphQlClient` to create a new instance with customized settings:
103103

@@ -149,7 +149,7 @@ For WebSocket transport specific interception, you can create a
149149
}
150150
----
151151

152-
xref:includes/client.adoc#client.interception[Register] the above interceptor as any other
152+
xref:client.adoc#client.interception[Register] the above interceptor as any other
153153
`GraphQlClientInterceptor` and use it also to intercept GraphQL requests, but note there
154154
can be at most one interceptor of type `WebSocketGraphQlClientInterceptor`.
155155

@@ -187,7 +187,7 @@ single, shared session for all requests to that server. Each client instance
187187
establishes its own connection and that is typically not the intent for a single server.
188188

189189
Once `RSocketGraphQlClient` is created, you can begin to
190-
xref:includes/client.adoc#client.requests[execute requests] using the same API, independent of the underlying
190+
xref:client.adoc#client.requests[execute requests] using the same API, independent of the underlying
191191
transport.
192192

193193

@@ -199,16 +199,16 @@ transport.
199199
builders of all extensions. Currently, it has lets you configure:
200200

201201
- `DocumentSource` strategy to load the document for a request from a file
202-
- xref:includes/client.adoc#client.interception[Interception] of executed requests
202+
- xref:client.adoc#client.interception[Interception] of executed requests
203203

204204

205205

206206

207207
[[client.requests]]
208208
== Requests
209209

210-
Once you have a xref:includes/client.adoc#client.graphqlclient[`GraphQlClient`], you can begin to perform requests via
211-
xref:includes/client.adoc#client.requests.retrieve[retrieve()] or xref:includes/client.adoc#client.requests.execute[execute()]
210+
Once you have a xref:client.adoc#client.graphqlclient[`GraphQlClient`], you can begin to perform requests via
211+
xref:client.adoc#client.requests.retrieve[retrieve()] or xref:client.adoc#client.requests.execute[execute()]
212212
where the former is only a shortcut for the latter.
213213

214214

@@ -239,7 +239,7 @@ The below retrieves and decodes the data for a query:
239239

240240
The input document is a `String` that could be a literal or produced through a code
241241
generated request object. You can also define documents in files and use a
242-
xref:includes/client.adoc#client.requests.document-source[Document Source] to resole them by file name.
242+
xref:client.adoc#client.requests.document-source[Document Source] to resole them by file name.
243243

244244
The path is relative to the "data" key and uses a simple dot (".") separated notation
245245
for nested fields with optional array indices for list elements, e.g. `"project.name"`
@@ -267,7 +267,7 @@ response and the field:
267267
[[client.requests.execute]]
268268
=== Execute
269269

270-
xref:includes/client.adoc#client.requests.retrieve[Retrieve] is only a shortcut to decode from a single path in the
270+
xref:client.adoc#client.requests.retrieve[Retrieve] is only a shortcut to decode from a single path in the
271271
response map. For more control, use the `execute` method and handle the response:
272272

273273
For example:
@@ -341,7 +341,7 @@ You can then:
341341

342342
The "JS GraphQL" plugin for IntelliJ supports GraphQL query files with code completion.
343343

344-
You can use the `GraphQlClient` xref:includes/client.adoc#client.graphqlclient.builder[Builder] to customize the
344+
You can use the `GraphQlClient` xref:client.adoc#client.graphqlclient.builder[Builder] to customize the
345345
`DocumentSource` for loading documents by names.
346346

347347

@@ -352,16 +352,16 @@ You can use the `GraphQlClient` xref:includes/client.adoc#client.graphqlclient.b
352352

353353
`GraphQlClient` can execute subscriptions over transports that support it. Only
354354
the WebSocket and RSocket transports support GraphQL subscriptions, so you'll need to
355-
create a xref:includes/client.adoc#client.websocketgraphqlclient[WebSocketGraphQlClient] or
356-
xref:includes/client.adoc#client.rsocketgraphqlclient[RSocketGraphQlClient].
355+
create a xref:client.adoc#client.websocketgraphqlclient[WebSocketGraphQlClient] or
356+
xref:client.adoc#client.rsocketgraphqlclient[RSocketGraphQlClient].
357357

358358

359359

360360
[[client.subscriptions.retrieve]]
361361
=== Retrieve
362362

363363
To start a subscription stream, use `retrieveSubscription` which is similar to
364-
xref:includes/client.adoc#client.requests.retrieve[retrieve] for a single response but returning a stream of
364+
xref:client.adoc#client.requests.retrieve[retrieve] for a single response but returning a stream of
365365
responses, each decoded to some data:
366366

367367
[source,java,indent=0,subs="verbatim,quotes"]
@@ -390,7 +390,7 @@ provides access to the `Subscription`.
390390
[[client.subscriptions.execute]]
391391
=== Execute
392392

393-
xref:includes/client.adoc#client.subscriptions.retrieve[Retrieve] is only a shortcut to decode from a single path in each
393+
xref:client.adoc#client.subscriptions.retrieve[Retrieve] is only a shortcut to decode from a single path in each
394394
response map. For more control, use the `executeSubscription` method and handle each
395395
response directly:
396396

0 commit comments

Comments
 (0)