openSUSE / open-build-service

Build and distribute Linux packages from sources in an automatic, consistent and reproducible way #obs
https://openbuildservice.org
GNU General Public License v2.0
937 stars 440 forks source link

GraphQL API #3210

Open hennevogel opened 7 years ago

hennevogel commented 7 years ago

As a user I want to query the OBS for data that I want. Only the data that I want. With an GraphQL API layer you can do something like

{
  project {
    name
    packages {
      name
    }
  }
}

to get

{
  "project": {
    "name": "OBS:Server:Unstable"
    "packages": [
            "obs-server",
            "osc",
            "ruby"
          ]
  }
}
mschnitzer commented 7 years ago

Like :+1: GitHub recently introduced this in their API v4