Created the API part in ruby on rails, version 4.0.0.rc1