Commit ef4d3180 authored by Mark Stenglein's avatar Mark Stenglein

Merge branch 'bootstrap'

parents 35d0f68d cfb0d075
......@@ -9,7 +9,6 @@
"author": "Mason Student Run Computing and Technology",
"license": "ISC",
"dependencies": {
"express": "^4.14.0",
"json2csv": "^3.7.1",
"xlsx": "^0.8.0"
}
......
This diff is collapsed.
<HTML>
<HEAD TITLE="GMUCal API">
<BODY><H2>GMUCal API</H2>
<HR />
The GMUCal API accepts queries via HTTP URL parameters and returns results as JSON objects.
<P />
The general format for a GMUCal query is: <code>http://www.gmucal.com/api.html?query=&lt;QUERY_TYPE&gt;[&amp;&lt;QUERY_CRITERION_KEY&gt;=&lt;QUERY_CRITERION_VALUE&gt;]</code>
<HR />
<UL>
<LI><b>Query Type: Terms</b>
<P />
<b>Provides:</b> The list of GMU academic terms for which GMUCal can provide data.
<P />
<b>Query parameters:</b> None.
<P />
<b>Query results:</b> An array of terms. Each term is a two-element list: [term code, term name].
<P />
<b>Example request:</b> <code>http://www.gmucal.com/api.html?query=terms</code>
<P />
<b>Example response:</b> <code>[["201570","Fall 2015"],["201540","Summer 2015"],...]</code>
<LI><B>Query Type: Term Classes</B>
<P />
<b>Provides:</b> A list of classes in a specified GMU academic term. Can be filtered by query parameters. (A term parameter must be specified, but others are optional.) Parameters can be specified in any order. All query parameters are evaluated in a case-insensitive manner.
<P />
<b>Query criteria:</b>
<UL>
<LI><b>term</b> (required): The term code of the term for which to list classes.
<LI><b>name</b> (optional): Filter results by class names. For example, 'name=ece' will only produce classes such as 'ECE 101,' 'ECED 401,' etc.
<LI><b>title</b> (optional): Filter results by class title. For example, 'title=signals' will only produce classes with titles such as "Signals and Systems".
<LI><b>instructor</b> (optional): Filter results by class instructor. For example, 'instructor=berry' will only produce classes where at least part of one instructor's title is Berry.
<LI><b>campus</b> (optional): Filter results by campus. For example, 'campus=fairfax' will only produce classes on the Fairfax campus.
</UL>
<P />
<b>Query results:</b> An array of classes in the specified term. Each class is an object with the following elements:
<UL>
<LI><b>crn:</b> CRN number
<LI><b>name:</b> Class name
<LI><b>title:</b> Class title
<LI><b>section:</b> Section number
<LI><b>campus:</b> The name of the campus where the class is hosted
<LI><b>session_templates:</b> An array of class session template objects. Each class session template is an object with the following elements:
<UL>
<LI><b>date_range:</b> The date range of the class session
<LI><b>days:</b> The days of the week for the class session
<LI><b>time:</b> The time of the class session on the specified days
<LI><b>location:</b> The location of the class session
<LI><b>class_type:</b> The type of the class session
<LI><b>instructors:</b> The instructors for the class session
</UL></UL><P />
<b>Example request:</b> <code>http://www.gmucal.com/api.html?query=term_classes&term=201570</code>
<P />
<b>Example response:</b> <code>[{"crn":"71524","name":"ACCT 203","title":"Survey of Accounting","section":"001","campus":"Fairfax Campus","session_templates":[{"date_range":"Aug 31, 2015 - Dec 21, 2015","days":"M","time":"1:30 pm - 2:45 pm","location":"Enterprise Hall 178","class_type":"Lecture","instructors":"Constance M Hylton"}]},...]</code>
<LI><B>Query Type: Class Sessions</B>
<P />
<b>Provides:</b> A list of the specific class sessions for selected classes in a specified term.
<P />
<b>Query parameters:</b> The same query parameter set as for Class Terms.
<P />
<b>Query results:</b> An array of class session for specified classes in a specified term. Each class session is an array with two elements:
<UL><LI>A class object (same as provided in response to a Term Classes query)
<LI>A session instances array. Each session instance is an object with the following elements:
<UL><LI><b>start:</b> Start date/time
<LI><b>end:</b> End date/time
<LI><b>type:</b> Session type (e.g., Lecture, Recitation, Lab)
<LI><b>location:</b> Session location
<LI><b>instructor:</b> Instructor name
<LI><b>status:</b> Class status (usually "CONFIRMED," but can also be "RESCHEDULED" or "CANCELED", based on the such as for holidays)
</UL></UL><P />
<b>Example request:</b> <code>http://www.gmucal.com/api.html?query=class_sessions&term=201570&crn=74570</code>
<P />
<b>Example response:</b> <code>[[{"crn":"71524","name":"ACCT 203",...},[{"start":"2015-08-31T17:30:00.000Z","end":"2015-08-31T18:45:00.000Z","type":"Lecture","location":"Enterprise Hall 178","instructor":"TBA","status":"CONFIRMED"},...]]</code>
</UL>
<HR />
<A HREF="index.html">Back to GMUCal main page</A> | <A HREF="faq.html">Back to GMUCal FAQ</A>
<HR />
</BODY></HTML>
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
"10004","ANTH 114","Intro to Cultural Anthropology","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","MR","10:15 am - 11:30 am","Korea: Administration Building 4025","Lecture","David W Haines"
"10012","ANTH 330","Peoples/Culture-Non-West","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","R","12:30 pm - 3:10 pm","Korea: Administration Building 4008","Lecture","David W Haines"
"10005","ANTH 399","Issues in Anthropology","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","W","8:50 am - 11:30 am","Korea: Administration Building 4008","Lecture","Gyu Tag Lee"
"10018","ECON 100","Economics for the Citizen","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","TF","8:45 am - 10:00 am","Korea: Administration Building 4034","Lecture","Jang C Jin"
"10003","ECON 103","Microeconomic Principles","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","MR","2:00 pm - 3:15 pm","Korea: Administration Building 4025","Lecture","Jang C Jin"
"10014","ENGH 100","Composition Nonnative Speakers","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","TF","8:45 am - 10:00 am","Korea: Administration Building 4024","Lecture","Hyun Young Cho"
"10016","ENGH 100","Composition Nonnative Speakers","002","Korea Campus","Mar 03, 2014 - Jun 18, 2014","MR","3:30 pm - 4:45 pm","Korea: Administration Building 4008","Lecture","Hyun Young Cho"
"10015","ENGH 100","Recitation for Lecture 001","301","Korea Campus","Mar 03, 2014 - Jun 18, 2014","W","10:00 am - 10:50 am","To Be Arranged TBA","Recitation","Hyun Young Cho"
"10017","ENGH 100","Recitation for Lecture 002","302","Korea Campus","Mar 03, 2014 - Jun 18, 2014","W","10:00 am - 10:50 am","To Be Arranged TBA","Recitation","Hyun Young Cho"
"10006","ENGH 101","Composition","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","TF","8:45 am - 10:00 am","Korea: Administration Building 4024","Lecture","Hyun Young Cho"
"10013","ENGH 101","Composition","002","Korea Campus","Mar 03, 2014 - Jun 18, 2014","MR","3:30 pm - 4:45 pm","Korea: Administration Building 4008","Lecture","Hyun Young Cho"
"10008","KORE 110","Elementary Korean","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","TF","1:00 pm - 3:40 pm","Korea: Administration Building 4025","Lecture","Hyang Lee"
"10007","KORE 210","Intermediate Korean","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","TR","10:15 am - 11:30 am","Korea: Administration Building 4008","Lecture","Hyang Lee"
"10011","KORE 330","Adv Korean Language/Culture","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","W","4:00 pm - 6:40 pm","Korea: Administration Building 4008","Lecture","Jeonghwa Yun"
"10010","MATH 104","Trigonometry/Transcend Functio","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","TF","3:00 pm - 3:50 pm","Korea: Administration Building 4008","Lecture","John S Kulesza"
"10009","MATH 113","Analytic Geometry/Calculus I","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","TF","12:30 pm - 2:10 pm","Korea: Administration Building 4008","Lecture","John S Kulesza"
"10002","SOCI 120","Globalization and Society","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","MR","12:30 pm - 1:45 pm","Korea: Administration Building 4025","Lecture","Karen E Rosenblum"
"10001","SOCI 352","Social Problems","001","Korea Campus","Mar 03, 2014 - Jun 18, 2014","M","8:50 am - 11:30 am","Korea: Administration Building 4044","Lecture","Karen E Rosenblum"
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
"90005","ANTH 114","Intro to Cultural Anthropology","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","10:45 am - 12:00 pm","TBA","Lecture","David W Haines"
"90013","ANTH 330","Peoples/Culture-Non-West","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","10:45 am - 12:00 pm","TBA","Lecture","David W Haines"
"90006","ANTH 399","Korean Culture","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","F","9:20 am - 12:00 pm","TBA","Lecture","Gyu Tag Lee"
"90036","CHIN 110","Elementary Chinese","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","2:15 pm - 4:55 pm","TBA","Lecture","Yingji Jin"
"90030","COMM 100","Public Speaking","K03","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","2:15 pm - 3:30 pm","TBA","Lecture","Eunkyong Yook"
"90040","COMM 100","Public Speaking","K05","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","10:45 am - 12:00 pm","TBA","Lecture","Eunkyong Yook"
"90039","COMM 305","Foundations Intercultural Comm","K02","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","2:15 pm - 3:30 pm","TBA","Lecture","Eunkyong Yook"
"90004","ECON 103","Microeconomic Principles","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","9:15 am - 10:30 am","TBA","Lecture","Jang C Jin"
"90032","ECON 103","Microeconomic Principles","K02","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","12:45 pm - 2:00 pm","TBA","Lecture","Jang C Jin"
"90020","ECON 104","Macroeconomic Principles","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","9:15 am - 10:30 am","TBA","Lecture","Jang C Jin"
"90016","ENGH 100","Recitation for Lecture K01","3K1","Korea Campus","Sep 01, 2014 - Dec 18, 2014","F","12:45 pm - 1:35 pm","TBA","Recitation","Michael Dunne"
"90018","ENGH 100","Recitation for Lecture K02","3K2","Korea Campus","Sep 01, 2014 - Dec 18, 2014","F","2:15 pm - 3:05 pm","TBA","Recitation","Michael Dunne"
"90015","ENGH 100","Composition Nonnative Speakers","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","12:45 pm - 2:00 pm","TBA","Lecture","Michael Dunne"
"90044","ENGH 100","Composition Nonnative Speakers","K03","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","12:45 pm - 2:00 pm","TBA","Lecture","Hyun Young Cho"
"90007","ENGH 101","Composition","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","12:45 pm - 2:00 pm","TBA","Lecture","Hyun Young Cho"
"90021","ENGH 201","Reading and Writng About Texts","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","12:45 pm - 2:00 pm","TBA","Lecture","Hyun Young Cho"
"90022","ENGH 201","Reading and Writng About Texts","K02","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","2:15 pm - 3:30 pm","TBA","Lecture","Hyun Young Cho"
"90033","KORE 110","Elementary Korean","K02","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","1:00 pm - 3:40 pm","TBA","Lecture","Hyang Lee"
"90041","KORE 210","Intermediate Korean","K03","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","9:15 am - 10:30 am","TBA","Lecture","Hyang Lee"
"90047","KORE 310","Classical Korean Literature","K04","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","4:30 pm - 5:45 pm","TBA","Lecture","Hyang Lee"
"90043","MATH 008","Prep Coll Alg, Self-Pace","K01","Off-campus/Other Campus","Sep 01, 2014 - Dec 18, 2014","MTWRFSU","TBA","Off-campus Location OCL","Independent Study","Ellen E O'Brien"
"90037","MATH 104","Trigonometry/Transcend Functio","K02","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","10:45 am - 11:35 am","TBA","Lecture","Keith M Fox"
"90024","MATH 106","Quantitative Reasoning","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","3:45 pm - 5:00 pm","TBA","Lecture","Keith M Fox"
"90025","MATH 108","Intro Calc:Business Applicatio","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","3:45 pm - 5:00 pm","TBA","Lecture","Keith M Fox"
"90048","MATH 113","Recitation for Lecture K01","3K1","Korea Campus","Sep 01, 2014 - Dec 18, 2014","M","5:10 pm - 6:00 pm","TBA","Lecture","Keith M Fox"
"90010","MATH 113","Analytic Geometry/Calculus I","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","2:00 pm - 3:40 pm","TBA","Lecture","John S Kulesza"
"90049","MATH 114","Recitation for Lecture K01","3K1","Korea Campus","Sep 01, 2014 - Dec 18, 2014","T","5:10 pm - 6:00 pm","TBA","Recitation","Keith M Fox"
"90026","MATH 114","Analytic Geom and Calc II","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","TR","12:10 pm - 1:50 pm","TBA","Lecture","John S Kulesza"
"90003","SOCI 120","Globalization and Society","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","9:15 am - 10:30 am","TBA","Lecture","Karen E Rosenblum"
"90027","SOCI 355","Social Inequality","K01","Korea Campus","Sep 01, 2014 - Dec 18, 2014","MW","10:45 am - 12:00 pm","TBA","Lecture","Karen E Rosenblum"
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
201570,Fall 2015
201540,Summer 2015
201510,Spring 2015
201472,Korea Fall 2014
201470,Fall 2014
201440,Summer 2014
201412,Spring 2014 - Korea
201410,Spring 2014
201370,Fall 2013
201340,Summer 2013
201310,Spring 2013
201270,Fall 2012
201240,Summer 2012
201210,Spring 2012
201170,Fall 2011
201140,Summer 2011
201110,Spring 2011
201070,Fall 2010
201040,Summer 2010
201010,Spring 2010
200970,Fall 2009
200940,Summer 2009
200910,Spring 2009
200870,Fall 2008
200840,Summer 2008
200810,Spring 2008
200770,Fall 2007
200740,Summer 2007
200710,Spring 2007
200670,Fall 2006
200640,Summer 2006
200610,Spring 2006
200570,Fall 2005
200540,Summer 2005
200510,Spring 2005
This diff is collapsed.
This diff is collapsed.
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment