Skip to content

apiaframework/schema-parser

Repository files navigation

Screenshot

Gem Version

This library provides a little Ruby wrapper on top of a Apia Schema JSON file. It allows you to browse the specification for a Apia API through Ruby.

Installation

Just in the gem...

gem 'apia-schema-parser', '~> 1.0'

Get started

schema = ApiaSchemaParser.load_from_file('path/to/schema.json')
schema.host                   # => hostname
schema.namespace              # => namespace for URLs
schema.api.controllers        # => all controllers
schema.api.authenticator      # => global authenticator