nerdsupremacist / Graphaello

A Tool for Writing Declarative, Type-Safe and Data-Driven Applications in SwiftUI using GraphQL

Home Page:https://graphaello.dev

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Evaluate new API for registering Servers

nerdsupremacist opened this issue · comments

  • Add a way to register a default url
  • Add a way to list them, instead of including the entire json in place

Link this to #14 since we could list the url by itself and add the schema in the cache folder

Evaluate writing a mini language for this.

project = path/to/project.xcodeproj

noCache
noFormatting

apis {
    Movies {
       url = https://tmdb-graph.herokuapp.com
       headers {
           Authorization = Bearer bdjfbasdjkfsjdfjdfasdfs
       }
    }

    StarWars {
        json = "schemas/StarWars.json"
    }
}

or maybe just use yaml like everyone else