Module: DemoApi

Defined in:
lib/demo_api.rb,
lib/demo_api/client.rb

Overview

Ruby client for the demo GraphQL API.

The Ruby API is documented with YARD tags; the GraphQL schema it talks to is documented in the GraphQL API Reference, generated by GraphQL-Markdown and rendered by YARD on the same site.

Examples:

List active projects

client = DemoApi::Client.new(endpoint: 'https://api.example.com/graphql')
client.projects(status: :active).each { |project| puts project['name'] }

Defined Under Namespace

Classes: Client, Error

Constant Summary collapse

VERSION =

Version of the client library.

'0.1.0'