/prodetotal2

Simple prode application

Primary LanguageRuby

Build Status Dependency Status Code Climate Coverage Status

Prode Total

API

##### GET '/competitions' ````json GET '/competitions' [ { "id": 1, "exact_match_points": 6, "result_match_points": 3, "no_match_points": 0, "no_forecast_points": 0, "name": "Copa del Mundo Brasil 2014", "start_date": "2014-03-31", "end_date": "2014-03-31", "created_at": "2014-05-18T16:26:42.188Z", "updated_at": "2014-05-18T16:26:42.188Z" }, {...} ] ```` ##### GET '/competitions/:competition_id' ````json GET '/competitions/:competition_id' { "id": 1, "exact_match_points": 6, "result_match_points": 3, "no_match_points": 0, "no_forecast_points": 0, "name": "Copa del Mundo Brasil 2014", "start_date": "2014-03-31", "end_date": "2014-03-31", "created_at": "2014-05-18T16:26:42.188Z", "updated_at": "2014-05-18T16:26:42.188Z" } ```` ##### POST '/competitions' ````json POST '/competitions' request { "name": "Copa del Mundo Brasil 2014", "exact_match_points": 6, "result_match_points": 3, "no_match_points": 0, "no_forecast_points": 0, "start_date": "2014-03-31T19:27:42.242Z", "end_date": "2014-03-31T19:27:42.242Z" }

response { "id": 1, "name": "Copa del Mundo Brasil 2014", "exact_match_points": 6, "result_match_points": 3, "no_match_points": 0, "no_forecast_points": 0, "start_date": "2014-03-31", "end_date": "2014-03-31", "created_at": "2014-05-18T16:26:42.188Z", "updated_at": "2014-05-18T16:26:42.188Z" }

<a name="matches_of_competition"/>
##### GET '/competitions/:competition_id/matches'
````json
// GET '/competitions/:competition_id/matches'
[

]