An implementation of a REST API using the Bottle framework and PonyORM as the database abstraction layer.
Returns json data about a set of skills.
-
URL
/
/Skills -
Method:
GET
-
URL Params
Optional:
app=Floor Exercise|Pommel Horse|Rings|Vault|Parallel Bars|Horizontal Bar
eg=[integer]
value=[A..I]
-
Data Params
None
-
Success Response:
- Code: 200
Content:{ success : true, skills : [Skills] }
- Code: 200
-
Error Response:
- Code: 404 NOT FOUND
Content:{ success : false }
- Code: 404 NOT FOUND
-
Sample Call:
$.ajax({ url: "/skills?app=Vault&eg=2", dataType: "json", type : "GET", success : function(r) { console.log(r); } });