Skip to main content

SpringBoot

Usage

  1. Add repository if not use the version on maven central
repositories {
...
maven {
url = uri("https://maven.pkg.github.com/restfql/spring-restfql")
credentials {
username = project.findProperty("gpr.user") as String? ?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("gpr.key") as String? ?: System.getenv("GITHUB_TOKEN")
}
}
}
  1. install with a package manager
val restfql_version = "1.0.8"

dependencies {
implementation("com.restfql:spring-restfql:$restfql_version")
}
  1. Add a configuration with the import to the RestFQLConfiguration.class
@Configuration
@Import(RestFQLConfiguration.class)
public class AppConfig {}

  1. query passing the model as a query param call fql

preview query