Skip to content

igordcsouza/swgem

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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