Project

swapir

0.0
No commit activity in last 3 years
No release in over 3 years
A wrapper gem that handles interactions with the Star Wars Api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.0
 Project Readme

Star Wars API Wrapper

A simplified interface for interacting with the Star Wars API Main page: https://github.com/RianaFerreira/swapir

Requirements

  • Ruby >= 2.4.1

Swapir depends on these other gems for usage at runtime:

Installation

Add the following line to a Gemfile:

gem 'swapir'

and run bundle install from your shell.

If you use Rubygems, run this command manually from your shell to install the latest Swapir version:

gem install swapir

Usage

Once the gem is installed you have access to a simple Swapir public interface. This will help you to find more information about your favourite Star Wars characters, movies, planets, species, starships and vehicles.

Note: the Star Wars API returns paginated collections of 10 records per request.
Swapir collects all the paginated results and returns the total number of records in the collection.

Take a look at the wiki for more information.

Interesting resources