All Downloads are FREE. Search and download functionalities are using the official Maven repository.

graphql.kickstart.autoconfigure.editor.playground.properties.PlaygroundProperties Maven / Gradle / Ivy

package graphql.kickstart.autoconfigure.editor.playground.properties;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.NestedConfigurationProperty;
import org.springframework.validation.annotation.Validated;

@Data
@Validated
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@ConfigurationProperties(prefix = "graphql.playground")
public class PlaygroundProperties {

  private boolean enabled = false;

  @NotBlank private String endpoint = "/graphql";

  @NotBlank private String subscriptionEndpoint = "/subscriptions";

  @NestedConfigurationProperty @JsonIgnore private PlaygroundCdn cdn = new PlaygroundCdn();

  @NestedConfigurationProperty @JsonIgnore
  private PlaygroundStaticPathSettings staticPath = new PlaygroundStaticPathSettings();

  @JsonIgnore private String pageTitle = "Playground";

  @NestedConfigurationProperty private PlaygroundSettings settings;

  private Map headers = Collections.emptyMap();

  @NestedConfigurationProperty private List tabs = Collections.emptyList();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy