restQL-core allows you to run restQL queries directly from JVM applications, making easy to fetch information from multiple services in the most efficient manner. e.g.:
from search
with
role = "hero"
from hero as heroList
with
name = search.results.name
Links
- restql.b2w.io: Project home page,
- game.b2w.io: A game developed to teach the basics of restQL language,
- restQL-server: The main restQL repo. It spin up a restQL-server that will listen for queries. Can be used by any language/project.
- restQL-core-java: If you want to embed restQL directly into your Java application,
- restQL-manager: To manage saved queries and resources endpoints. restQL-manager requires a MongoDB instance.
- Tackling microservice query complexity: Project motivation and history
- Wiki: Project documentation.
Who're talking about restQL
- infoQ: restQL, a Microservices Query Language, Released on GitHub
- infoQ: 微服务查询语言restQL已在GitHub上发布
- OSDN Mag: マイクロサービスクエリ言語「restQL 2.3」公開
Add restQL dependency to your project
Lein
[b2wdigital/restql-core "2.3"]
(require '[restql.core.api.restql :as restql])
(restql/execute-query :mappings { :user "http://your.api.url/users/:name" } :query "from user with name = $name" :params { :name "Duke Nukem" } )
In the example above restQL will call user API passing "Duke Nukem" in the name param.
As prerequisites to build restQL from source we have:
- Java 8
- Leiningen 2.x
Just clone this repo and run "lein jar".
Copyright © 2016 B2W Digital
Distributed under the MIT License.