0.01
No commit activity in last 3 years
No release in over 3 years
Generate API objects from swagger definition files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
~> 2.2

Runtime

 Project Readme

#Synopsis

Ruby gem for using APIs, based on their Geekier API descriptions.

#Installation

##Gemfile

gem "geekier_factory"

##Standalone

gem install geekier_factory

#Usage

Download the API definition you want to use.

require 'geekier_factory'

# instanciate the api
api = GeekierFactory.factorize('path/to/definition_file.json')

# get a list of actions you can perform
api.available_actions

# select the action you want to perform
action = api.available_actions[3]

# check out what parameters are possible/necessary
action.params

# select an action and call it with its parameters
action.call(:param1 => 'valueA', :param2 => 'valueB)

And that's how you do it.

#Participate

#TODO

(in no particular order)

  • Implement support for resources
  • Parameter validations
  • Support for Authentication/API level configuration
  • Add more descriptions
  • Setup with all the cool testing and dependency checking solutions out there