Skip to content

green-labs/ring-altair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ring-Altair

Ring middleware for Altair GraphQL Client.

Install

green-labs/ring-altair {:git/url "https://github.com/green-labs/ring-altair"
                        :git/sha "216a1d1ac0f4523c9d83d5dccae3e55c0737df00"}

Usage

See possible options

(ns example
  (:require [ring.middleware.altair :refer [wrap-altair]]))

(wrap-altair {:url                     "/altair"
              :initialName             "My Altair"
              :endpointURL             "{{API_ENDPOINT}}/graphql"
              :initialHeaders          {:Authorization "Bearer {{accessToken}}"}
              :initialEnvironments     {:base            {:id        "default_environment"
                                                          :title     "Default environmnet"
                                                          :variables {:API_ENDPOINT "http://localhost:8000"}}
                                        :subEnvironments [{:id        "prod_environment"
                                                            :title     "prod"
                                                            :variables {:API_ENDPOINT "https://prod.api.com"}}]}
              :initialPreRequestScript "console.log(\"initialPreRequestScript\");"})

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published