Skip to content

restfql/spring-restfql

Repository files navigation

LogoMakr-0suVuk Spring RestFQL

Motivation

RestFQL for spring is a rest middleware that implements the specification.

In short RestFQL allows filtering of response driven by the querying side without breaking caching and keeping the capability for the backend to do optimizations as required.

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

About

restfql middleware for springboot

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages