Required permission: | ReadSections |
POST | /Section/{uuid} |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SectionRequest
{
public String uuid = null;
public String getUuid() { return uuid; }
public SectionRequest setUuid(String value) { this.uuid = value; return this; }
}
public static class SectionResponse
{
public ResponseStatus responseStatus = null;
public String secUUID = null;
public String course_name = null;
public String section_code = null;
public String course_title = null;
public String course_short_title = null;
public String course_description = null;
public String crosslist_description = null;
public String crosslist_course_name = null;
public String location_long_name = null;
public String room = null;
public ArrayList<InstructorResponse> instructors = null;
public ArrayList<DocumentResponse> required_documents = null;
public Date start_date = null;
public Date end_date = null;
public Date first_meeting_date = null;
public Date last_meeting_date = null;
public String meeting_days = null;
public ArrayList<String> start_times = null;
public ArrayList<String> end_times = null;
public Boolean is_online_only = null;
public Boolean is_weekend = null;
public Boolean is_weekday = null;
public Boolean is_evening = null;
public Boolean is_waitlist = null;
public Boolean has_special_requirements = null;
public String special_requirements = null;
public Boolean is_unlisted = null;
public ArrayList<BigDecimal> credit_amounts = null;
public ArrayList<BigDecimal> audit_amounts = null;
public String audits_short_name = null;
public String audits_long_name = null;
public String credits_short_name = null;
public String credits_long_name = null;
public String distance_ed_materials = null;
public String prerequisites = null;
public String corequisites = null;
public Integer capacity = null;
public BigDecimal flat_fee_amount = null;
public BigDecimal additional_fee_amount = null;
public Integer registered_students = null;
public Integer three_credit_plus = null;
public Integer two_credit = null;
public Integer one_credit = null;
public Integer three_audit_plus = null;
public Integer two_audit = null;
public Integer one_audit = null;
public Integer crosslist_registered_students = null;
public Integer grades_received = null;
public Integer crosslist_grades_received = null;
public Date registration_start_date = null;
public Date registration_end_date = null;
public Date add_start_date = null;
public Date add_end_date = null;
public Date drop_start_date = null;
public Date drop_end_date = null;
public Date grading_end_date = null;
public String term = null;
public String reporting_term = null;
public Integer reporting_year = null;
public String current_status = null;
public String added_by = null;
public Date added_date = null;
public String changed_by = null;
public Date changed_date = null;
public Date timestamp = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public SectionResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getSecUUID() { return secUUID; }
public SectionResponse setSecUUID(String value) { this.secUUID = value; return this; }
public String getCourseName() { return course_name; }
public SectionResponse setCourseName(String value) { this.course_name = value; return this; }
public String getSectionCode() { return section_code; }
public SectionResponse setSectionCode(String value) { this.section_code = value; return this; }
public String getCourseTitle() { return course_title; }
public SectionResponse setCourseTitle(String value) { this.course_title = value; return this; }
public String getCourseShortTitle() { return course_short_title; }
public SectionResponse setCourseShortTitle(String value) { this.course_short_title = value; return this; }
public String getCourseDescription() { return course_description; }
public SectionResponse setCourseDescription(String value) { this.course_description = value; return this; }
public String getCrosslistDescription() { return crosslist_description; }
public SectionResponse setCrosslistDescription(String value) { this.crosslist_description = value; return this; }
public String getCrosslistCourseName() { return crosslist_course_name; }
public SectionResponse setCrosslistCourseName(String value) { this.crosslist_course_name = value; return this; }
public String getLocationLongName() { return location_long_name; }
public SectionResponse setLocationLongName(String value) { this.location_long_name = value; return this; }
public String getRoom() { return room; }
public SectionResponse setRoom(String value) { this.room = value; return this; }
public ArrayList<InstructorResponse> getInstructors() { return instructors; }
public SectionResponse setInstructors(ArrayList<InstructorResponse> value) { this.instructors = value; return this; }
public ArrayList<DocumentResponse> getRequiredDocuments() { return required_documents; }
public SectionResponse setRequiredDocuments(ArrayList<DocumentResponse> value) { this.required_documents = value; return this; }
public Date getStartDate() { return start_date; }
public SectionResponse setStartDate(Date value) { this.start_date = value; return this; }
public Date getEndDate() { return end_date; }
public SectionResponse setEndDate(Date value) { this.end_date = value; return this; }
public Date getFirstMeetingDate() { return first_meeting_date; }
public SectionResponse setFirstMeetingDate(Date value) { this.first_meeting_date = value; return this; }
public Date getLastMeetingDate() { return last_meeting_date; }
public SectionResponse setLastMeetingDate(Date value) { this.last_meeting_date = value; return this; }
public String getMeetingDays() { return meeting_days; }
public SectionResponse setMeetingDays(String value) { this.meeting_days = value; return this; }
public ArrayList<String> getStartTimes() { return start_times; }
public SectionResponse setStartTimes(ArrayList<String> value) { this.start_times = value; return this; }
public ArrayList<String> getEndTimes() { return end_times; }
public SectionResponse setEndTimes(ArrayList<String> value) { this.end_times = value; return this; }
public Boolean getIsOnlineOnly() { return is_online_only; }
public SectionResponse setIsOnlineOnly(Boolean value) { this.is_online_only = value; return this; }
public Boolean getIsWeekend() { return is_weekend; }
public SectionResponse setIsWeekend(Boolean value) { this.is_weekend = value; return this; }
public Boolean getIsWeekday() { return is_weekday; }
public SectionResponse setIsWeekday(Boolean value) { this.is_weekday = value; return this; }
public Boolean getIsEvening() { return is_evening; }
public SectionResponse setIsEvening(Boolean value) { this.is_evening = value; return this; }
public Boolean getIsWaitlist() { return is_waitlist; }
public SectionResponse setIsWaitlist(Boolean value) { this.is_waitlist = value; return this; }
public Boolean isHasSpecialRequirements() { return has_special_requirements; }
public SectionResponse setHasSpecialRequirements(Boolean value) { this.has_special_requirements = value; return this; }
public String getSpecialRequirements() { return special_requirements; }
public SectionResponse setSpecialRequirements(String value) { this.special_requirements = value; return this; }
public Boolean getIsUnlisted() { return is_unlisted; }
public SectionResponse setIsUnlisted(Boolean value) { this.is_unlisted = value; return this; }
public ArrayList<BigDecimal> getCreditAmounts() { return credit_amounts; }
public SectionResponse setCreditAmounts(ArrayList<BigDecimal> value) { this.credit_amounts = value; return this; }
public ArrayList<BigDecimal> getAuditAmounts() { return audit_amounts; }
public SectionResponse setAuditAmounts(ArrayList<BigDecimal> value) { this.audit_amounts = value; return this; }
public String getAuditsShortName() { return audits_short_name; }
public SectionResponse setAuditsShortName(String value) { this.audits_short_name = value; return this; }
public String getAuditsLongName() { return audits_long_name; }
public SectionResponse setAuditsLongName(String value) { this.audits_long_name = value; return this; }
public String getCreditsShortName() { return credits_short_name; }
public SectionResponse setCreditsShortName(String value) { this.credits_short_name = value; return this; }
public String getCreditsLongName() { return credits_long_name; }
public SectionResponse setCreditsLongName(String value) { this.credits_long_name = value; return this; }
public String getDistanceEdMaterials() { return distance_ed_materials; }
public SectionResponse setDistanceEdMaterials(String value) { this.distance_ed_materials = value; return this; }
public String getPrerequisites() { return prerequisites; }
public SectionResponse setPrerequisites(String value) { this.prerequisites = value; return this; }
public String getCorequisites() { return corequisites; }
public SectionResponse setCorequisites(String value) { this.corequisites = value; return this; }
public Integer getCapacity() { return capacity; }
public SectionResponse setCapacity(Integer value) { this.capacity = value; return this; }
public BigDecimal getFlatFeeAmount() { return flat_fee_amount; }
public SectionResponse setFlatFeeAmount(BigDecimal value) { this.flat_fee_amount = value; return this; }
public BigDecimal getAdditionalFeeAmount() { return additional_fee_amount; }
public SectionResponse setAdditionalFeeAmount(BigDecimal value) { this.additional_fee_amount = value; return this; }
public Integer getRegisteredStudents() { return registered_students; }
public SectionResponse setRegisteredStudents(Integer value) { this.registered_students = value; return this; }
public Integer getThreeCreditPlus() { return three_credit_plus; }
public SectionResponse setThreeCreditPlus(Integer value) { this.three_credit_plus = value; return this; }
public Integer getTwoCredit() { return two_credit; }
public SectionResponse setTwoCredit(Integer value) { this.two_credit = value; return this; }
public Integer getOneCredit() { return one_credit; }
public SectionResponse setOneCredit(Integer value) { this.one_credit = value; return this; }
public Integer getThreeAuditPlus() { return three_audit_plus; }
public SectionResponse setThreeAuditPlus(Integer value) { this.three_audit_plus = value; return this; }
public Integer getTwoAudit() { return two_audit; }
public SectionResponse setTwoAudit(Integer value) { this.two_audit = value; return this; }
public Integer getOneAudit() { return one_audit; }
public SectionResponse setOneAudit(Integer value) { this.one_audit = value; return this; }
public Integer getCrosslistRegisteredStudents() { return crosslist_registered_students; }
public SectionResponse setCrosslistRegisteredStudents(Integer value) { this.crosslist_registered_students = value; return this; }
public Integer getGradesReceived() { return grades_received; }
public SectionResponse setGradesReceived(Integer value) { this.grades_received = value; return this; }
public Integer getCrosslistGradesReceived() { return crosslist_grades_received; }
public SectionResponse setCrosslistGradesReceived(Integer value) { this.crosslist_grades_received = value; return this; }
public Date getRegistrationStartDate() { return registration_start_date; }
public SectionResponse setRegistrationStartDate(Date value) { this.registration_start_date = value; return this; }
public Date getRegistrationEndDate() { return registration_end_date; }
public SectionResponse setRegistrationEndDate(Date value) { this.registration_end_date = value; return this; }
public Date getAddStartDate() { return add_start_date; }
public SectionResponse setAddStartDate(Date value) { this.add_start_date = value; return this; }
public Date getAddEndDate() { return add_end_date; }
public SectionResponse setAddEndDate(Date value) { this.add_end_date = value; return this; }
public Date getDropStartDate() { return drop_start_date; }
public SectionResponse setDropStartDate(Date value) { this.drop_start_date = value; return this; }
public Date getDropEndDate() { return drop_end_date; }
public SectionResponse setDropEndDate(Date value) { this.drop_end_date = value; return this; }
public Date getGradingEndDate() { return grading_end_date; }
public SectionResponse setGradingEndDate(Date value) { this.grading_end_date = value; return this; }
public String getTerm() { return term; }
public SectionResponse setTerm(String value) { this.term = value; return this; }
public String getReportingTerm() { return reporting_term; }
public SectionResponse setReportingTerm(String value) { this.reporting_term = value; return this; }
public Integer getReportingYear() { return reporting_year; }
public SectionResponse setReportingYear(Integer value) { this.reporting_year = value; return this; }
public String getCurrentStatus() { return current_status; }
public SectionResponse setCurrentStatus(String value) { this.current_status = value; return this; }
public String getAddedBy() { return added_by; }
public SectionResponse setAddedBy(String value) { this.added_by = value; return this; }
public Date getAddedDate() { return added_date; }
public SectionResponse setAddedDate(Date value) { this.added_date = value; return this; }
public String getChangedBy() { return changed_by; }
public SectionResponse setChangedBy(String value) { this.changed_by = value; return this; }
public Date getChangedDate() { return changed_date; }
public SectionResponse setChangedDate(Date value) { this.changed_date = value; return this; }
public Date getTimestamp() { return timestamp; }
public SectionResponse setTimestamp(Date value) { this.timestamp = value; return this; }
}
public static class InstructorResponse
{
public ResponseStatus responseStatus = null;
public Integer regent_id = null;
public String regent_login = null;
public String preferred_name = null;
public String first_name = null;
public String last_name = null;
public String full_name = null;
public String email = null;
public String image_base64 = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public InstructorResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public Integer getRegentId() { return regent_id; }
public InstructorResponse setRegentId(Integer value) { this.regent_id = value; return this; }
public String getRegentLogin() { return regent_login; }
public InstructorResponse setRegentLogin(String value) { this.regent_login = value; return this; }
public String getPreferredName() { return preferred_name; }
public InstructorResponse setPreferredName(String value) { this.preferred_name = value; return this; }
public String getFirstName() { return first_name; }
public InstructorResponse setFirstName(String value) { this.first_name = value; return this; }
public String getLastName() { return last_name; }
public InstructorResponse setLastName(String value) { this.last_name = value; return this; }
public String getFullName() { return full_name; }
public InstructorResponse setFullName(String value) { this.full_name = value; return this; }
public String getEmail() { return email; }
public InstructorResponse setEmail(String value) { this.email = value; return this; }
public String getImageBase64() { return image_base64; }
public InstructorResponse setImageBase64(String value) { this.image_base64 = value; return this; }
}
public static class DocumentResponse
{
public String code = null;
public String document_name = null;
public String document_description = null;
public String getCode() { return code; }
public DocumentResponse setCode(String value) { this.code = value; return this; }
public String getDocumentName() { return document_name; }
public DocumentResponse setDocumentName(String value) { this.document_name = value; return this; }
public String getDocumentDescription() { return document_description; }
public DocumentResponse setDocumentDescription(String value) { this.document_description = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Section/{uuid} HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length
{
uuid: String
}
HTTP/1.1 200 OK Content-Type: text/jsv Content-Length: length { responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }, secUUID: String, course_name: String, section_code: String, course_title: String, course_short_title: String, course_description: String, crosslist_description: String, crosslist_course_name: String, location_long_name: String, room: String, instructors: [ { responseStatus: { errorCode: String, message: String, stackTrace: String, errors: [ { errorCode: String, fieldName: String, message: String, meta: { String: String } } ], meta: { String: String } }, regent_id: 0, regent_login: String, preferred_name: String, first_name: String, last_name: String, full_name: String, email: String, image_base64: String } ], required_documents: [ { code: String, document_name: String, document_description: String } ], start_date: 0001-01-01, end_date: 0001-01-01, first_meeting_date: 0001-01-01, last_meeting_date: 0001-01-01, meeting_days: String, start_times: [ String ], end_times: [ String ], is_online_only: False, is_weekend: False, is_weekday: False, is_evening: False, is_waitlist: False, has_special_requirements: False, special_requirements: String, is_unlisted: False, credit_amounts: [ 0 ], audit_amounts: [ 0 ], audits_short_name: String, audits_long_name: String, credits_short_name: String, credits_long_name: String, distance_ed_materials: String, prerequisites: String, corequisites: String, capacity: 0, flat_fee_amount: 0, additional_fee_amount: 0, registered_students: 0, three_credit_plus: 0, two_credit: 0, one_credit: 0, three_audit_plus: 0, two_audit: 0, one_audit: 0, crosslist_registered_students: 0, grades_received: 0, crosslist_grades_received: 0, registration_start_date: 0001-01-01, registration_end_date: 0001-01-01, add_start_date: 0001-01-01, add_end_date: 0001-01-01, drop_start_date: 0001-01-01, drop_end_date: 0001-01-01, grading_end_date: 0001-01-01, term: String, reporting_term: String, reporting_year: 0, current_status: String, added_by: String, added_date: 0001-01-01, changed_by: String, changed_date: 0001-01-01, timestamp: 0001-01-01 }