Schedule Builder Backend RESTful API

Returns all possible classes in a JSON Array

  • URL

    /api/classes

  • Method:

    GET

  • Success Response:

    A successful response should send an array of dictionaries where each dictionary contains the course information (Keys: Title, Credits, Class).

    • Code: 200
      Content:

            [
              {
                  "Title": "Principles of Accounting I",
                  "Credits": "3.00",
                  "Class": "ACCT 260"
              },
              {
                  "Title": "Principles of Accounting II",
                  "Credits": "3.00",
                  "Class": "ACCT 261"
              },
              ...]
      
  • Sample Call:

          $.ajax({
               url: "/api/classes",
               dataType: "json",
               type : "GET",
               success : function(r) {
                 console.log(r);
               }
          });