Required permission: | ReadSections |
POST | /Sections/Timetable/{reporting_term} |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SectionsTimetableRequest
{
public String reporting_term = null;
public String getReportingTerm() { return reporting_term; }
public SectionsTimetableRequest setReportingTerm(String value) { this.reporting_term = value; return this; }
}
public static class SectionsTimetableResponse
{
public ResponseStatus responseStatus = null;
public String term = null;
public ArrayList<SectionTimetableNoteResponse> notes = null;
public ArrayList<SectionTimetableResponse> monday = null;
public ArrayList<SectionTimetableResponse> tuesday = null;
public ArrayList<SectionTimetableResponse> wednesday = null;
public ArrayList<SectionTimetableResponse> thursday = null;
public ArrayList<SectionTimetableResponse> friday = null;
public ArrayList<SectionTimetableResponse> saturday = null;
public ArrayList<SectionTimetableResponse> sunday = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public SectionsTimetableResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getTerm() { return term; }
public SectionsTimetableResponse setTerm(String value) { this.term = value; return this; }
public ArrayList<SectionTimetableNoteResponse> getNotes() { return notes; }
public SectionsTimetableResponse setNotes(ArrayList<SectionTimetableNoteResponse> value) { this.notes = value; return this; }
public ArrayList<SectionTimetableResponse> getMonday() { return monday; }
public SectionsTimetableResponse setMonday(ArrayList<SectionTimetableResponse> value) { this.monday = value; return this; }
public ArrayList<SectionTimetableResponse> getTuesday() { return tuesday; }
public SectionsTimetableResponse setTuesday(ArrayList<SectionTimetableResponse> value) { this.tuesday = value; return this; }
public ArrayList<SectionTimetableResponse> getWednesday() { return wednesday; }
public SectionsTimetableResponse setWednesday(ArrayList<SectionTimetableResponse> value) { this.wednesday = value; return this; }
public ArrayList<SectionTimetableResponse> getThursday() { return thursday; }
public SectionsTimetableResponse setThursday(ArrayList<SectionTimetableResponse> value) { this.thursday = value; return this; }
public ArrayList<SectionTimetableResponse> getFriday() { return friday; }
public SectionsTimetableResponse setFriday(ArrayList<SectionTimetableResponse> value) { this.friday = value; return this; }
public ArrayList<SectionTimetableResponse> getSaturday() { return saturday; }
public SectionsTimetableResponse setSaturday(ArrayList<SectionTimetableResponse> value) { this.saturday = value; return this; }
public ArrayList<SectionTimetableResponse> getSunday() { return sunday; }
public SectionsTimetableResponse setSunday(ArrayList<SectionTimetableResponse> value) { this.sunday = value; return this; }
}
public static class SectionTimetableNoteResponse
{
public String heading = null;
public String body = null;
public String getHeading() { return heading; }
public SectionTimetableNoteResponse setHeading(String value) { this.heading = value; return this; }
public String getBody() { return body; }
public SectionTimetableNoteResponse setBody(String value) { this.body = value; return this; }
}
public static class SectionTimetableResponse
{
public String time = null;
public Integer sortTime = null;
public String course = null;
public String courseSlug = null;
public String desc = null;
public ArrayList<SectionTimetableInstructorResponse> instructors = null;
public String registrationInfo = null;
public String room = null;
public BigDecimal creditMinimum = null;
public BigDecimal creditMaximum = null;
public BigDecimal auditMinimum = null;
public BigDecimal auditMaximum = null;
public String getTime() { return time; }
public SectionTimetableResponse setTime(String value) { this.time = value; return this; }
public Integer getSortTime() { return sortTime; }
public SectionTimetableResponse setSortTime(Integer value) { this.sortTime = value; return this; }
public String getCourse() { return course; }
public SectionTimetableResponse setCourse(String value) { this.course = value; return this; }
public String getCourseSlug() { return courseSlug; }
public SectionTimetableResponse setCourseSlug(String value) { this.courseSlug = value; return this; }
public String getDesc() { return desc; }
public SectionTimetableResponse setDesc(String value) { this.desc = value; return this; }
public ArrayList<SectionTimetableInstructorResponse> getInstructors() { return instructors; }
public SectionTimetableResponse setInstructors(ArrayList<SectionTimetableInstructorResponse> value) { this.instructors = value; return this; }
public String getRegistrationInfo() { return registrationInfo; }
public SectionTimetableResponse setRegistrationInfo(String value) { this.registrationInfo = value; return this; }
public String getRoom() { return room; }
public SectionTimetableResponse setRoom(String value) { this.room = value; return this; }
public BigDecimal getCreditMinimum() { return creditMinimum; }
public SectionTimetableResponse setCreditMinimum(BigDecimal value) { this.creditMinimum = value; return this; }
public BigDecimal getCreditMaximum() { return creditMaximum; }
public SectionTimetableResponse setCreditMaximum(BigDecimal value) { this.creditMaximum = value; return this; }
public BigDecimal getAuditMinimum() { return auditMinimum; }
public SectionTimetableResponse setAuditMinimum(BigDecimal value) { this.auditMinimum = value; return this; }
public BigDecimal getAuditMaximum() { return auditMaximum; }
public SectionTimetableResponse setAuditMaximum(BigDecimal value) { this.auditMaximum = value; return this; }
}
public static class SectionTimetableInstructorResponse
{
public String instructorName = null;
public String instructorSlug = null;
public String getInstructorName() { return instructorName; }
public SectionTimetableInstructorResponse setInstructorName(String value) { this.instructorName = value; return this; }
public String getInstructorSlug() { return instructorSlug; }
public SectionTimetableInstructorResponse setInstructorSlug(String value) { this.instructorSlug = value; return this; }
}
}
Java SectionsTimetableRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Sections/Timetable/{reporting_term} HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"reporting_term":"String"}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"term":"String","notes":[{"heading":"String","body":"String"}],"monday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"tuesday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"wednesday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"thursday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"friday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"saturday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}],"sunday":[{"time":"String","sortTime":0,"course":"String","courseSlug":"String","desc":"String","instructors":[{"instructorName":"String","instructorSlug":"String"}],"registrationInfo":"String","room":"String","creditMinimum":0,"creditMaximum":0,"auditMinimum":0,"auditMaximum":0}]}