This is the unofficial Safran API.
It fetches the latest stories from Safran every one hour and serves it as a JSON API for client consuming.
You can check 'routes.rb' file for the api paths.
If you are starting the app for the first time. You better fetch some stories. To do so:
cd safran-api && bundle exec rails c
MainParser.new
And then boot up your Rails server to serve JSON
bundle exec rails s
git clone https://github.com/Sdogruyol/safran-api
cd safran-api && bundle install
bundle exec rake db:migrate
bundle exec whenever --update-crontab
All contribution and Pull Requests are welcome.