Skip to content

Ruby on Rails application to fetch VDM website

Notifications You must be signed in to change notification settings

StephaneJuban/VDM_API

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VDM API Challenge

This application let you fetch the last 200 records from VDM website and store them into the database. You can then retrieved them via the dedicated JSON REST API.

I've decided to use Ruby on Rails for this test as agreed before.

Retrieve VDM posts

You can fetch the last 200 posts from VDM website by using this simple command:

rake vdm:get_posts

You can also specify the number of posts to fetch with the parameter NB_OF_VDM_TO_GET

rake vdm:get_posts NB_OF_VDM_TO_GET=100

For test purpose, you can go to this page to see a preview of the result (this will execute the command).

Use the API

You can test the API in Heroku, this will give you all the posts in JSON. You can use optionals parameters (from, to, author).

Unit tests

You can find the tests under test/. There is multiple unit tests for the Post model and the API. Tests can be executed with the command:

rake test

About

Ruby on Rails application to fetch VDM website

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published