Rubygem for the SWAPI.CO
API Documentation ~> http://swapi.co/documentation
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 = SWGEM::People.new
person = person.all
person = person.by_id(id)
person = person.search(str)
status = person.validate_api_status
starships = SWGEM::Starships.new
starship = starships.all
starship = starships.by_id(id)
starship = starships.search(str)
status = starships.validate_api_status
vehicles = SWGEM::Vehicles.new
vehicles = vehicles.all
vehicle = vehicles.by_id(id)
vehicle = vehicles.search(str)
status = vehicles.validate_api_status
species = SWGEM::Species.new
specie = species.all
specie = species.by_id(id)
specie = species.search(str)
status = species.validate_api_status
planets = SWGEM::Planets.new
planet = planets.all
planet = planets.by_id(id)
planet = planets.search(str)
status = planets.validate_api_status
git clone https://github.com/igordcsouza/swgem.git
cd swgem/
bundle install
rspec
👤 Igor Souza
- Twitter: @igordcsouza
Give a ⭐️ if this project helped you!
This README was generated with ❤️ by readme-md-generator