Project

swgem

0.0
No release in over 3 years
Low commit activity in last 3 years
This is a wrapper from http://swapi.co
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 0.9
~> 2.0
~> 3.5
 Project Readme

Welcome to SWGEM - Star Wars Gem 👋

Version Twitter: igordcsouza

Coverage Status Build Status Code Climate

Rubygem for the SWAPI.CO

API Documentation ~> http://swapi.co/documentation

Usage

Films

 films  = SWGEM::Films.new
 film   = films.all
 film   = films.by_id(id)
 film   = films.by_episode(episode_id)
 film   = films.search(str)
 status = films.validate_api_status

People

 people  = SWGEM::People.new
 person  = person.all
 person  = person.by_id(id)
 person  = person.search(str)
 status  = person.validate_api_status

Starships

starships = SWGEM::Starships.new
starship  = starships.all
starship  = starships.by_id(id)
starship  = starships.search(str)
status    = starships.validate_api_status

Vehicles

 vehicles = SWGEM::Vehicles.new
 vehicles = vehicles.all
 vehicle  = vehicles.by_id(id)
 vehicle  = vehicles.search(str)
 status   = vehicles.validate_api_status

Species

 species = SWGEM::Species.new
 specie  = species.all
 specie  = species.by_id(id)
 specie  = species.search(str)
 status  = species.validate_api_status

Planets

planets = SWGEM::Planets.new
planet  = planets.all
planet  = planets.by_id(id)
planet  = planets.search(str)
status  = planets.validate_api_status

Run Tests

 git clone https://github.com/igordcsouza/swgem.git
 cd swgem/
 bundle install
 rspec

Author

👤 Igor Souza

Show your support

Give a ⭐️ if this project helped you!


This README was generated with ❤️ by readme-md-generator