Skip to content

suzuki86/qrank-apiserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

qrank-apiserver

This application provides RESTful API for various purposes.

Build Status

Features

  • Crawl Qiita API and store data.
  • Provide JSON API by using stored data.

Usage

Runner

QrankRunner#get_entries

Get entries and store them to database.

bundle exec rails runner QrankRunner.get_entries

If page number is passed as argument, entries in the specified page are performed. Example like below gets entries from page of 2.

bundle exec rails runner QrankRunner.get_entries(2)

QrankRunner#update_user

Update record of the user who has the most oldest updated_at.

bundle exec rails runner QrankRunner.update_user