public class GraphiQlHandler
extends java.lang.Object
| Constructor and Description |
|---|
GraphiQlHandler(java.lang.String graphQlPath)
Constructor that serves the default
graphiql/index.html included
in the spring-graphql module. |
GraphiQlHandler(java.lang.String graphQlPath,
org.springframework.core.io.Resource htmlResource)
Constructor with the HTML page to serve.
|
| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.function.ServerResponse |
handleRequest(org.springframework.web.servlet.function.ServerRequest request)
Render the GraphiQL page as "text/html", or if the "path" query parameter
is missing, add it and redirect back to the same URL.
|
public GraphiQlHandler(java.lang.String graphQlPath)
graphiql/index.html included
in the spring-graphql module.graphQlPath - the path to the GraphQL endpointpublic GraphiQlHandler(java.lang.String graphQlPath,
org.springframework.core.io.Resource htmlResource)
graphQlPath - the path to the GraphQL endpointhtmlResource - the GraphiQL page to serve