-
Notifications
You must be signed in to change notification settings - Fork 15
Service API
dondi edited this page Sep 18, 2012
·
9 revisions
Path or query parameters are delimited by curly braces. Some general rules:
- Query or other parameters typically apply only to the
GETmethod on a particular resource. -
POSTs to collection resources must not include anidproperty. The service assigns the ID and returns the URI of the just-created resource in the response’sLocationheader. -
PUTs to individual resources must include anidproperty, and thisidmust match theidin the URI’s path. - Not all URIs in this page have been implemented; please consult the source code to see where things stand at this moment.
/users-
/users/login/**{username}**(accessible only by the user with that username) -
/users/**{id}**(accessible only by users with theHEADMASTERrole)
Student resources are available on two tiers: a standard student object with non-sensitive data, and a student record object with sensitive data such as grades and scores. Only users with certain roles can access data that involve the student record.
/students-
/students?**{query}**-
q: Generic query, applying the parameter to assorted fields.- If
qis of the formtext, text, then the query matchesstarts-withlast name, first name. - If
qconsists solely of digits, then the query matchesstudentId. - If
qis anything else, then the query matchesstarts-withlast name.
- If
-
active: If present, then filters for active or inactive students. - The following parameters are mutually exclusive:
-
class: Class year query, can befreshman,sophomore,junior, orsenior. -
classFromandclassTo: Class year range query (inclusive).
-
-
transfer: Boolean query, based on whether a student is a transfer.
-
/students/**{id}**/students/**{id}**/attendance/students/**{id}**/grants
Unauthorized attempts to use these URIs will receive a FORBIDDEN error message.
/students/**{id}**/record-
/students?**{query}**-
probation: Boolean query, based on whether a student is on probation. -
cumulativeGpaFromandcumulativeGpaTo: Numeric query, returning students whose calculated cumulative GPAs match the given range. These parameters can be given individually. -
gpaFrom,gpaTo,gpaTerm,gpaYear: Numeric query, returning students whose GPA for the given term and year match the given range. WhengpaFromorgpaToare given, bothgpaTermandgpaYearmust also be supplied. When neithergpaFromnorgpaToare present, then neither shouldgpaTermnorgpaYearbecause those parameters are meaningless without the range values.
-
/students/**{id}**/messages/students/**{id}**/messages/**{mid}**
/events/events?**{query}**/events/**{id}**
/grants/grants?**{query}**/grants/**{id}**