Remove configuration key for GraphQL schema path

Currently, the GraphQL schema is exposed under /graphql/schema (so
relative to the main graphql endpoint) and is configurable with the
`spring.graphql.schema.printer.path` configuration property.

We think we should make the schema location more consistent to help
tools and various Gateway products. Also, we don't see right now a
strong use case for such a configuration property.

This commit removes the configuration property and sets the schema
location under `/graphql/schema`(`/graphql` being the main graphql path
configured by the application).

Closes gh-79
This commit is contained in:
Brian Clozel
2021-07-02 13:57:36 +02:00
parent 9a23e5f8d3
commit 2be79c2c73
4 changed files with 4 additions and 19 deletions

View File

@@ -183,7 +183,8 @@ schema locations to check as follows:
spring.graphql.schema.locations=classpath:graphql/
----
The GraphQL schema can be viewed over HTTP at "/graphql/schema", if enabled:
The GraphQL schema can be viewed over HTTP at "/graphql/schema", relative to the main graphql endpoint path.
It is disabled by default:
[source,properties,indent=0,subs="verbatim,quotes"]
----