Skip to content

Basic web API based on the bottle framework for serving the code of points

License

Notifications You must be signed in to change notification settings

lukewiwa/API_code_of_points

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MAG 2020 Code of Points REST API

An implementation of a REST API using the Bottle framework and PonyORM as the database abstraction layer.

Show Skills

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] }
  • Error Response:

    • Code: 404 NOT FOUND
      Content: { success : false }
  • Sample Call:

      $.ajax({
        url: "/skills?app=Vault&eg=2",
        dataType: "json",
        type : "GET",
        success : function(r) {
          console.log(r);
        }
      });

About

Basic web API based on the bottle framework for serving the code of points

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages