A restful API constructed using Python(flask_restful) which returns all ongoing and upcoming programming contests in JSON.
Returns json data about upcoming and ongoing programming contests on various platforms like Codechef, Codeforces and Hackerearth.
-
URL
-
Method:
GET
-
Success Response:
- Code: 200
Content:{"result": {"present_contests": [{"end_time": "2018-01-05 00:00:00", "name": "ZCO Practice Contest", "code": "ZCOPRAC", "start_time": "2015-11-05 00:00:00", "platform": "codechef", "contest_url": "www.codechef.com/ZCOPRAC"}], "upcoming_contests": [{"end_time": "2017-10-16 13:05:00", "name": "Codeforces Round #441 (Div. 1, by Moscow Team Olympiad)", "code": 875, "start_time": "2017-10-16 11:05:00", "platform": "codeforces", "contest_url": "http://codeforces.com/contest/875"}]}}
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
- Code: 404 NOT FOUND
-
Sample Call:
$.ajax({ url: "https://tranquil-caverns-50595.herokuapp.com", dataType: "json", type : "GET", success : function(r) { console.log(r); } });
The number of contests returned is based on the query parameter.
-
URL
-
Method:
GET
-
URL Params
Required:
count=[integer]
The number of contests returned is based on the query parameter.
-
URL
https://tranquil-caverns-50595.herokuapp.com/upcoming/:count
-
Method:
GET
-
URL Params
Required:
count=[integer]
The number of contests returned is based on the query parameter.
-
URL
https://tranquil-caverns-50595.herokuapp.com/upcoming/present/:count
-
Method:
GET
-
URL Params
Required:
count=[integer]