Class GraphiQLRouteConfiguration

  • All Implemented Interfaces:

    @ConditionalOnProperty(value = {"graphglue.graphiql.enabled"}, havingValue = "true", matchIfMissing = true)@Configuration() 
    public final class GraphiQLRouteConfiguration
    
                        

    Configuration for exposing the GraphiQL on a specific HTTP path

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final RouterFunction<ServerResponse> graphiQLRoute() Route for the GraphIQL instance
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GraphiQLRouteConfiguration

        GraphiQLRouteConfiguration(GraphQLConfigurationProperties config, GraphglueConfigurationProperties graphglueConfig, Resource graphiQLHtml, String contextPath)
        Parameters:
        config - GraphQL Kotlin config to obtain endpoints
        graphglueConfig - used to configure the endpoint of the GraphiQL instance
        graphiQLHtml - the HTML template to serve
        contextPath - base path to build endpoint URLs
    • Method Detail

      • graphiQLRoute

        @Bean() final RouterFunction<ServerResponse> graphiQLRoute()

        Route for the GraphIQL instance