Skip to content

joshrezende/restQL-core

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

restQL-Core

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

Who're talking about restQL

Getting Started

Installation

Add restQL dependency to your project

Lein

[b2wdigital/restql-core "2.3"]

First query

(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.

Building From Source Code

As prerequisites to build restQL from source we have:

  • Java 8
  • Leiningen 2.x

Just clone this repo and run "lein jar".

License

Copyright © 2016 B2W Digital

Distributed under the MIT License.

About

Microservice query language

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Clojure 100.0%