| Required role: | REGISUserRole |
| POST | /Sections/Admin/{reporting_term} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class SectionsAdminRequest
{
public String reporting_term = null;
public String getReportingTerm() { return reporting_term; }
public SectionsAdminRequest setReportingTerm(String value) { this.reporting_term = value; return this; }
}
public static class SectionsAdminResponse
{
public ResponseStatus responseStatus = null;
public String reporting_term = null;
public ArrayList<SectionAdminResponse> sections = null;
public HashMap<Integer,ArrayList<SectionRateWithAmountResponse>> section_rates = null;
public HashMap<Integer,ArrayList<SectionRefundScheduleResponse>> section_refund_schedules = null;
public ArrayList<String> locations = null;
public HashMap<Integer,ArrayList<InstructorResponse>> section_instructors = null;
public HashMap<Integer,ArrayList<String>> section_document_codes = null;
public HashMap<Integer,ArrayList<Integer>> crosslisted_sections = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public SectionsAdminResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getReportingTerm() { return reporting_term; }
public SectionsAdminResponse setReportingTerm(String value) { this.reporting_term = value; return this; }
public ArrayList<SectionAdminResponse> getSections() { return sections; }
public SectionsAdminResponse setSections(ArrayList<SectionAdminResponse> value) { this.sections = value; return this; }
public HashMap<Integer,ArrayList<SectionRateWithAmountResponse>> getSectionRates() { return section_rates; }
public SectionsAdminResponse setSectionRates(HashMap<Integer,ArrayList<SectionRateWithAmountResponse>> value) { this.section_rates = value; return this; }
public HashMap<Integer,ArrayList<SectionRefundScheduleResponse>> getSectionRefundSchedules() { return section_refund_schedules; }
public SectionsAdminResponse setSectionRefundSchedules(HashMap<Integer,ArrayList<SectionRefundScheduleResponse>> value) { this.section_refund_schedules = value; return this; }
public ArrayList<String> getLocations() { return locations; }
public SectionsAdminResponse setLocations(ArrayList<String> value) { this.locations = value; return this; }
public HashMap<Integer,ArrayList<InstructorResponse>> getSectionInstructors() { return section_instructors; }
public SectionsAdminResponse setSectionInstructors(HashMap<Integer,ArrayList<InstructorResponse>> value) { this.section_instructors = value; return this; }
public HashMap<Integer,ArrayList<String>> getSectionDocumentCodes() { return section_document_codes; }
public SectionsAdminResponse setSectionDocumentCodes(HashMap<Integer,ArrayList<String>> value) { this.section_document_codes = value; return this; }
public HashMap<Integer,ArrayList<Integer>> getCrosslistedSections() { return crosslisted_sections; }
public SectionsAdminResponse setCrosslistedSections(HashMap<Integer,ArrayList<Integer>> value) { this.crosslisted_sections = value; return this; }
}
public static class SectionAdminResponse
{
public String uuid = null;
public Integer section_id = null;
public Integer course_id = null;
public String course_name = null;
public BigDecimal min_credits = null;
public BigDecimal max_credits = null;
public BigDecimal credit_increments = null;
public BigDecimal min_audits = null;
public BigDecimal max_audits = null;
public BigDecimal audit_increments = null;
public String section_code = null;
public String title = null;
public String pretty_title = null;
public String override_course_description = null;
public String current_status = null;
public String location = null;
public String room = null;
public Boolean is_audio = null;
public Boolean is_oncampus = null;
public String distance_ed_materials = 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 String start_times = null;
public String end_times = null;
public Boolean is_pass_fail = 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 Integer capacity = null;
public BigDecimal flat_fee_amount = null;
public BigDecimal additional_fee_amount = null;
public Date override_registration_start_date = null;
public Date override_registration_end_date = null;
public Date override_add_start_date = null;
public Date override_add_end_date = null;
public Date override_drop_start_date = null;
public Date override_drop_end_date = null;
public Date override_grading_end_date = null;
public String term = null;
public String reporting_term = null;
public Integer reporting_year = null;
public Date added_date = null;
public String added_by = null;
public Date changed_date = null;
public String changed_by = null;
public Date timestamp = null;
public String getUuid() { return uuid; }
public SectionAdminResponse setUuid(String value) { this.uuid = value; return this; }
public Integer getSectionId() { return section_id; }
public SectionAdminResponse setSectionId(Integer value) { this.section_id = value; return this; }
public Integer getCourseId() { return course_id; }
public SectionAdminResponse setCourseId(Integer value) { this.course_id = value; return this; }
public String getCourseName() { return course_name; }
public SectionAdminResponse setCourseName(String value) { this.course_name = value; return this; }
public BigDecimal getMinCredits() { return min_credits; }
public SectionAdminResponse setMinCredits(BigDecimal value) { this.min_credits = value; return this; }
public BigDecimal getMaxCredits() { return max_credits; }
public SectionAdminResponse setMaxCredits(BigDecimal value) { this.max_credits = value; return this; }
public BigDecimal getCreditIncrements() { return credit_increments; }
public SectionAdminResponse setCreditIncrements(BigDecimal value) { this.credit_increments = value; return this; }
public BigDecimal getMinAudits() { return min_audits; }
public SectionAdminResponse setMinAudits(BigDecimal value) { this.min_audits = value; return this; }
public BigDecimal getMaxAudits() { return max_audits; }
public SectionAdminResponse setMaxAudits(BigDecimal value) { this.max_audits = value; return this; }
public BigDecimal getAuditIncrements() { return audit_increments; }
public SectionAdminResponse setAuditIncrements(BigDecimal value) { this.audit_increments = value; return this; }
public String getSectionCode() { return section_code; }
public SectionAdminResponse setSectionCode(String value) { this.section_code = value; return this; }
public String getTitle() { return title; }
public SectionAdminResponse setTitle(String value) { this.title = value; return this; }
public String getPrettyTitle() { return pretty_title; }
public SectionAdminResponse setPrettyTitle(String value) { this.pretty_title = value; return this; }
public String getOverrideCourseDescription() { return override_course_description; }
public SectionAdminResponse setOverrideCourseDescription(String value) { this.override_course_description = value; return this; }
public String getCurrentStatus() { return current_status; }
public SectionAdminResponse setCurrentStatus(String value) { this.current_status = value; return this; }
public String getLocation() { return location; }
public SectionAdminResponse setLocation(String value) { this.location = value; return this; }
public String getRoom() { return room; }
public SectionAdminResponse setRoom(String value) { this.room = value; return this; }
public Boolean getIsAudio() { return is_audio; }
public SectionAdminResponse setIsAudio(Boolean value) { this.is_audio = value; return this; }
public Boolean getIsOncampus() { return is_oncampus; }
public SectionAdminResponse setIsOncampus(Boolean value) { this.is_oncampus = value; return this; }
public String getDistanceEdMaterials() { return distance_ed_materials; }
public SectionAdminResponse setDistanceEdMaterials(String value) { this.distance_ed_materials = value; return this; }
public Date getStartDate() { return start_date; }
public SectionAdminResponse setStartDate(Date value) { this.start_date = value; return this; }
public Date getEndDate() { return end_date; }
public SectionAdminResponse setEndDate(Date value) { this.end_date = value; return this; }
public Date getFirstMeetingDate() { return first_meeting_date; }
public SectionAdminResponse setFirstMeetingDate(Date value) { this.first_meeting_date = value; return this; }
public Date getLastMeetingDate() { return last_meeting_date; }
public SectionAdminResponse setLastMeetingDate(Date value) { this.last_meeting_date = value; return this; }
public String getMeetingDays() { return meeting_days; }
public SectionAdminResponse setMeetingDays(String value) { this.meeting_days = value; return this; }
public String getStartTimes() { return start_times; }
public SectionAdminResponse setStartTimes(String value) { this.start_times = value; return this; }
public String getEndTimes() { return end_times; }
public SectionAdminResponse setEndTimes(String value) { this.end_times = value; return this; }
public Boolean getIsPassFail() { return is_pass_fail; }
public SectionAdminResponse setIsPassFail(Boolean value) { this.is_pass_fail = value; return this; }
public Boolean getIsWeekend() { return is_weekend; }
public SectionAdminResponse setIsWeekend(Boolean value) { this.is_weekend = value; return this; }
public Boolean getIsWeekday() { return is_weekday; }
public SectionAdminResponse setIsWeekday(Boolean value) { this.is_weekday = value; return this; }
public Boolean getIsEvening() { return is_evening; }
public SectionAdminResponse setIsEvening(Boolean value) { this.is_evening = value; return this; }
public Boolean getIsWaitlist() { return is_waitlist; }
public SectionAdminResponse setIsWaitlist(Boolean value) { this.is_waitlist = value; return this; }
public Boolean isHasSpecialRequirements() { return has_special_requirements; }
public SectionAdminResponse setHasSpecialRequirements(Boolean value) { this.has_special_requirements = value; return this; }
public String getSpecialRequirements() { return special_requirements; }
public SectionAdminResponse setSpecialRequirements(String value) { this.special_requirements = value; return this; }
public Boolean getIsUnlisted() { return is_unlisted; }
public SectionAdminResponse setIsUnlisted(Boolean value) { this.is_unlisted = value; return this; }
public Integer getCapacity() { return capacity; }
public SectionAdminResponse setCapacity(Integer value) { this.capacity = value; return this; }
public BigDecimal getFlatFeeAmount() { return flat_fee_amount; }
public SectionAdminResponse setFlatFeeAmount(BigDecimal value) { this.flat_fee_amount = value; return this; }
public BigDecimal getAdditionalFeeAmount() { return additional_fee_amount; }
public SectionAdminResponse setAdditionalFeeAmount(BigDecimal value) { this.additional_fee_amount = value; return this; }
public Date getOverrideRegistrationStartDate() { return override_registration_start_date; }
public SectionAdminResponse setOverrideRegistrationStartDate(Date value) { this.override_registration_start_date = value; return this; }
public Date getOverrideRegistrationEndDate() { return override_registration_end_date; }
public SectionAdminResponse setOverrideRegistrationEndDate(Date value) { this.override_registration_end_date = value; return this; }
public Date getOverrideAddStartDate() { return override_add_start_date; }
public SectionAdminResponse setOverrideAddStartDate(Date value) { this.override_add_start_date = value; return this; }
public Date getOverrideAddEndDate() { return override_add_end_date; }
public SectionAdminResponse setOverrideAddEndDate(Date value) { this.override_add_end_date = value; return this; }
public Date getOverrideDropStartDate() { return override_drop_start_date; }
public SectionAdminResponse setOverrideDropStartDate(Date value) { this.override_drop_start_date = value; return this; }
public Date getOverrideDropEndDate() { return override_drop_end_date; }
public SectionAdminResponse setOverrideDropEndDate(Date value) { this.override_drop_end_date = value; return this; }
public Date getOverrideGradingEndDate() { return override_grading_end_date; }
public SectionAdminResponse setOverrideGradingEndDate(Date value) { this.override_grading_end_date = value; return this; }
public String getTerm() { return term; }
public SectionAdminResponse setTerm(String value) { this.term = value; return this; }
public String getReportingTerm() { return reporting_term; }
public SectionAdminResponse setReportingTerm(String value) { this.reporting_term = value; return this; }
public Integer getReportingYear() { return reporting_year; }
public SectionAdminResponse setReportingYear(Integer value) { this.reporting_year = value; return this; }
public Date getAddedDate() { return added_date; }
public SectionAdminResponse setAddedDate(Date value) { this.added_date = value; return this; }
public String getAddedBy() { return added_by; }
public SectionAdminResponse setAddedBy(String value) { this.added_by = value; return this; }
public Date getChangedDate() { return changed_date; }
public SectionAdminResponse setChangedDate(Date value) { this.changed_date = value; return this; }
public String getChangedBy() { return changed_by; }
public SectionAdminResponse setChangedBy(String value) { this.changed_by = value; return this; }
public Date getTimestamp() { return timestamp; }
public SectionAdminResponse setTimestamp(Date value) { this.timestamp = value; return this; }
}
}
Java SectionsAdminRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /Sections/Admin/{reporting_term} HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<SectionsAdminRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<reporting_term>String</reporting_term>
</SectionsAdminRequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length
<SectionsAdminResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses">
<ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types">
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:Message>String</d2p1:Message>
<d2p1:StackTrace>String</d2p1:StackTrace>
<d2p1:Errors>
<d2p1:ResponseError>
<d2p1:ErrorCode>String</d2p1:ErrorCode>
<d2p1:FieldName>String</d2p1:FieldName>
<d2p1:Message>String</d2p1:Message>
<d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d5p1:KeyValueOfstringstring>
<d5p1:Key>String</d5p1:Key>
<d5p1:Value>String</d5p1:Value>
</d5p1:KeyValueOfstringstring>
</d2p1:Meta>
</d2p1:ResponseError>
</d2p1:Errors>
<d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d3p1:KeyValueOfstringstring>
<d3p1:Key>String</d3p1:Key>
<d3p1:Value>String</d3p1:Value>
</d3p1:KeyValueOfstringstring>
</d2p1:Meta>
</ResponseStatus>
<crosslisted_sections xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfintArrayOfintty7Ep6D1>
<d2p1:Key>0</d2p1:Key>
<d2p1:Value>
<d2p1:int>0</d2p1:int>
</d2p1:Value>
</d2p1:KeyValueOfintArrayOfintty7Ep6D1>
</crosslisted_sections>
<locations xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string>String</d2p1:string>
</locations>
<reporting_term>String</reporting_term>
<section_document_codes xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfintArrayOfstringty7Ep6D1>
<d2p1:Key>0</d2p1:Key>
<d2p1:Value>
<d2p1:string>String</d2p1:string>
</d2p1:Value>
</d2p1:KeyValueOfintArrayOfstringty7Ep6D1>
</section_document_codes>
<section_instructors xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfintArrayOfInstructorResponsezpaGewPN>
<d2p1:Key>0</d2p1:Key>
<d2p1:Value>
<InstructorResponse>
<ResponseStatus xmlns:d6p1="http://schemas.servicestack.net/types">
<d6p1:ErrorCode>String</d6p1:ErrorCode>
<d6p1:Message>String</d6p1:Message>
<d6p1:StackTrace>String</d6p1:StackTrace>
<d6p1:Errors>
<d6p1:ResponseError>
<d6p1:ErrorCode>String</d6p1:ErrorCode>
<d6p1:FieldName>String</d6p1:FieldName>
<d6p1:Message>String</d6p1:Message>
<d6p1:Meta>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</d6p1:Meta>
</d6p1:ResponseError>
</d6p1:Errors>
<d6p1:Meta>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</d6p1:Meta>
</ResponseStatus>
<email>String</email>
<first_name>String</first_name>
<full_name>String</full_name>
<image_base64>String</image_base64>
<last_name>String</last_name>
<preferred_name>String</preferred_name>
<regent_id>0</regent_id>
<regent_login>String</regent_login>
</InstructorResponse>
</d2p1:Value>
</d2p1:KeyValueOfintArrayOfInstructorResponsezpaGewPN>
</section_instructors>
<section_rates xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfintArrayOfSectionRateWithAmountResponsezpaGewPN>
<d2p1:Key>0</d2p1:Key>
<d2p1:Value>
<SectionRateWithAmountResponse>
<ResponseStatus xmlns:d6p1="http://schemas.servicestack.net/types">
<d6p1:ErrorCode>String</d6p1:ErrorCode>
<d6p1:Message>String</d6p1:Message>
<d6p1:StackTrace>String</d6p1:StackTrace>
<d6p1:Errors>
<d6p1:ResponseError>
<d6p1:ErrorCode>String</d6p1:ErrorCode>
<d6p1:FieldName>String</d6p1:FieldName>
<d6p1:Message>String</d6p1:Message>
<d6p1:Meta>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</d6p1:Meta>
</d6p1:ResponseError>
</d6p1:Errors>
<d6p1:Meta>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</d6p1:Meta>
</ResponseStatus>
<course_name>String</course_name>
<is_override_audit_rate>false</is_override_audit_rate>
<is_override_credit_rate>false</is_override_credit_rate>
<rate_code>String</rate_code>
<rate_description>String</rate_description>
<reporting_term>String</reporting_term>
<secUUID>String</secUUID>
<section_code>String</section_code>
<section_id>0</section_id>
<title>String</title>
<uuid>String</uuid>
<charge>0</charge>
<credit>0</credit>
<rate_id>0</rate_id>
</SectionRateWithAmountResponse>
</d2p1:Value>
</d2p1:KeyValueOfintArrayOfSectionRateWithAmountResponsezpaGewPN>
</section_rates>
<section_refund_schedules xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:KeyValueOfintArrayOfSectionRefundScheduleResponsezpaGewPN>
<d2p1:Key>0</d2p1:Key>
<d2p1:Value>
<SectionRefundScheduleResponse>
<ResponseStatus xmlns:d6p1="http://schemas.servicestack.net/types">
<d6p1:ErrorCode>String</d6p1:ErrorCode>
<d6p1:Message>String</d6p1:Message>
<d6p1:StackTrace>String</d6p1:StackTrace>
<d6p1:Errors>
<d6p1:ResponseError>
<d6p1:ErrorCode>String</d6p1:ErrorCode>
<d6p1:FieldName>String</d6p1:FieldName>
<d6p1:Message>String</d6p1:Message>
<d6p1:Meta>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</d6p1:Meta>
</d6p1:ResponseError>
</d6p1:Errors>
<d6p1:Meta>
<d2p1:KeyValueOfstringstring>
<d2p1:Key>String</d2p1:Key>
<d2p1:Value>String</d2p1:Value>
</d2p1:KeyValueOfstringstring>
</d6p1:Meta>
</ResponseStatus>
<course_name>String</course_name>
<end_date>0001-01-01T00:00:00</end_date>
<percentage>0</percentage>
<rate_code>String</rate_code>
<rate_description>String</rate_description>
<reporting_term>String</reporting_term>
<secUUID>String</secUUID>
<section_code>String</section_code>
<section_id>0</section_id>
<start_date>0001-01-01T00:00:00</start_date>
<title>String</title>
<uuid>String</uuid>
</SectionRefundScheduleResponse>
</d2p1:Value>
</d2p1:KeyValueOfintArrayOfSectionRefundScheduleResponsezpaGewPN>
</section_refund_schedules>
<sections>
<SectionAdminResponse>
<added_by>String</added_by>
<added_date>0001-01-01T00:00:00</added_date>
<additional_fee_amount>0</additional_fee_amount>
<audit_increments>0</audit_increments>
<capacity>0</capacity>
<changed_by>String</changed_by>
<changed_date>0001-01-01T00:00:00</changed_date>
<course_id>0</course_id>
<course_name>String</course_name>
<credit_increments>0</credit_increments>
<current_status>String</current_status>
<distance_ed_materials>String</distance_ed_materials>
<end_date>0001-01-01T00:00:00</end_date>
<end_times>String</end_times>
<first_meeting_date>0001-01-01T00:00:00</first_meeting_date>
<flat_fee_amount>0</flat_fee_amount>
<has_special_requirements>false</has_special_requirements>
<is_audio>false</is_audio>
<is_evening>false</is_evening>
<is_oncampus>false</is_oncampus>
<is_pass_fail>false</is_pass_fail>
<is_unlisted>false</is_unlisted>
<is_waitlist>false</is_waitlist>
<is_weekday>false</is_weekday>
<is_weekend>false</is_weekend>
<last_meeting_date>0001-01-01T00:00:00</last_meeting_date>
<location>String</location>
<max_audits>0</max_audits>
<max_credits>0</max_credits>
<meeting_days>String</meeting_days>
<min_audits>0</min_audits>
<min_credits>0</min_credits>
<override_add_end_date>0001-01-01T00:00:00</override_add_end_date>
<override_add_start_date>0001-01-01T00:00:00</override_add_start_date>
<override_course_description>String</override_course_description>
<override_drop_end_date>0001-01-01T00:00:00</override_drop_end_date>
<override_drop_start_date>0001-01-01T00:00:00</override_drop_start_date>
<override_grading_end_date>0001-01-01T00:00:00</override_grading_end_date>
<override_registration_end_date>0001-01-01T00:00:00</override_registration_end_date>
<override_registration_start_date>0001-01-01T00:00:00</override_registration_start_date>
<pretty_title>String</pretty_title>
<reporting_term>String</reporting_term>
<reporting_year>0</reporting_year>
<room>String</room>
<section_code>String</section_code>
<section_id>0</section_id>
<special_requirements>String</special_requirements>
<start_date>0001-01-01T00:00:00</start_date>
<start_times>String</start_times>
<term>String</term>
<timestamp>0001-01-01T00:00:00</timestamp>
<title>String</title>
<uuid>String</uuid>
</SectionAdminResponse>
</sections>
</SectionsAdminResponse>