nerdsupremacist / Graphaello

A Tool for Writing Declarative, Type-Safe and Data-Driven Applications in SwiftUI using GraphQL
https://graphaello.dev
MIT License
493 stars 18 forks source link

Evaluate new API for registering Servers #15

Open nerdsupremacist opened 4 years ago

nerdsupremacist commented 4 years ago
nerdsupremacist commented 4 years ago

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

nerdsupremacist commented 4 years ago

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