Vivek-Kolhe / Inshorts-API

Unofficial Inshorts API written in Ruby and Sinatra.

Home Page:https://api-inshorts.herokuapp.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Inshorts API

A simple Inshorts API written in Ruby and Sinatra. This was just made for fun and for familiarizing myself with Ruby.

Usage

API is available at https://api-inshorts.herokuapp.com/.

  • News from all categories.
    https://api-inshorts.herokuapp.com/all

  • News from specific category.
    https://api-inshorts.herokuapp.com/news?category={category}

    Example:
    https://api-inshorts.herokuapp.com/news?category=sports
    https://api-inshorts.herokuapp.com/news?category=startup

Available Categories

  • national
  • business
  • sports
  • world
  • politics
  • technology
  • startup
  • entertainment
  • miscellaneous
  • hatke
  • science
  • automobile

Set up

  • Install everything using
    bundle install
  • Run server using
    bundle exec rackup config.ru -p {PORT_NUMBER}

About

Unofficial Inshorts API written in Ruby and Sinatra.

https://api-inshorts.herokuapp.com

License:MIT License


Languages

Language:Ruby 100.0%