Required role: | REGISUserRole |
POST | /Academic/{secUUID}/Grade |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class GradeByCourseRequest
{
public String secUUID = null;
public Boolean include_crosslist = null;
public String getSecUUID() { return secUUID; }
public GradeByCourseRequest setSecUUID(String value) { this.secUUID = value; return this; }
public Boolean isIncludeCrosslist() { return include_crosslist; }
public GradeByCourseRequest setIncludeCrosslist(Boolean value) { this.include_crosslist = value; return this; }
}
public static class GradeByCourseResponse
{
public ResponseStatus responseStatus = null;
public String secUUID = null;
public Date gradingEndDate = null;
public Date overrideGradingEndDate = null;
public String course_name = null;
public String title = null;
public String term = null;
public Boolean crosslists_included = null;
public Boolean has_crosslists = null;
public ArrayList<StudentAcademicCredentialAndStudentResponse> studentAcademicCredentials = null;
public ArrayList<StudentAcademicCredentialAndStudentResponse> studentAcademicCredentialRetakes = null;
public ArrayList<StudentAcademicCredentialExtensionResponse> studentAcademicCredentialExtensions = null;
public ArrayList<GradeResponse> validGrades = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public GradeByCourseResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getSecUUID() { return secUUID; }
public GradeByCourseResponse setSecUUID(String value) { this.secUUID = value; return this; }
public Date getGradingEndDate() { return gradingEndDate; }
public GradeByCourseResponse setGradingEndDate(Date value) { this.gradingEndDate = value; return this; }
public Date getOverrideGradingEndDate() { return overrideGradingEndDate; }
public GradeByCourseResponse setOverrideGradingEndDate(Date value) { this.overrideGradingEndDate = value; return this; }
public String getCourseName() { return course_name; }
public GradeByCourseResponse setCourseName(String value) { this.course_name = value; return this; }
public String getTitle() { return title; }
public GradeByCourseResponse setTitle(String value) { this.title = value; return this; }
public String getTerm() { return term; }
public GradeByCourseResponse setTerm(String value) { this.term = value; return this; }
public Boolean isCrosslistsIncluded() { return crosslists_included; }
public GradeByCourseResponse setCrosslistsIncluded(Boolean value) { this.crosslists_included = value; return this; }
public Boolean isHasCrosslists() { return has_crosslists; }
public GradeByCourseResponse setHasCrosslists(Boolean value) { this.has_crosslists = value; return this; }
public ArrayList<StudentAcademicCredentialAndStudentResponse> getStudentAcademicCredentials() { return studentAcademicCredentials; }
public GradeByCourseResponse setStudentAcademicCredentials(ArrayList<StudentAcademicCredentialAndStudentResponse> value) { this.studentAcademicCredentials = value; return this; }
public ArrayList<StudentAcademicCredentialAndStudentResponse> getStudentAcademicCredentialRetakes() { return studentAcademicCredentialRetakes; }
public GradeByCourseResponse setStudentAcademicCredentialRetakes(ArrayList<StudentAcademicCredentialAndStudentResponse> value) { this.studentAcademicCredentialRetakes = value; return this; }
public ArrayList<StudentAcademicCredentialExtensionResponse> getStudentAcademicCredentialExtensions() { return studentAcademicCredentialExtensions; }
public GradeByCourseResponse setStudentAcademicCredentialExtensions(ArrayList<StudentAcademicCredentialExtensionResponse> value) { this.studentAcademicCredentialExtensions = value; return this; }
public ArrayList<GradeResponse> getValidGrades() { return validGrades; }
public GradeByCourseResponse setValidGrades(ArrayList<GradeResponse> value) { this.validGrades = value; return this; }
}
public static class StudentAcademicCredentialAndStudentResponse
{
public ResponseStatus responseStatus = null;
public String uuid = null;
public Integer regent_id = null;
public String student_name = null;
public String last_name = null;
public String first_name = null;
public String current_program = null;
public String applied_to_graduate_from_programs = null;
public String additional_instructors = null;
public String stac_uuid = null;
public Integer section_id = null;
public String course_name = null;
public String section_code = null;
public String subject = null;
public Integer course_level = null;
public String title = null;
public String location = null;
public Boolean is_audio = null;
public BigDecimal credit_value = null;
public BigDecimal audit_value = null;
public Boolean is_audit = null;
public Boolean is_pass_fail = null;
public String grade = null;
public Boolean is_grade_final = null;
public BigDecimal gpa_credits = null;
public BigDecimal grade_points = null;
public String academic_level = null;
public String printed_comments = 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 ResponseStatus getResponseStatus() { return responseStatus; }
public StudentAcademicCredentialAndStudentResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getUuid() { return uuid; }
public StudentAcademicCredentialAndStudentResponse setUuid(String value) { this.uuid = value; return this; }
public Integer getRegentId() { return regent_id; }
public StudentAcademicCredentialAndStudentResponse setRegentId(Integer value) { this.regent_id = value; return this; }
public String getStudentName() { return student_name; }
public StudentAcademicCredentialAndStudentResponse setStudentName(String value) { this.student_name = value; return this; }
public String getLastName() { return last_name; }
public StudentAcademicCredentialAndStudentResponse setLastName(String value) { this.last_name = value; return this; }
public String getFirstName() { return first_name; }
public StudentAcademicCredentialAndStudentResponse setFirstName(String value) { this.first_name = value; return this; }
public String getCurrentProgram() { return current_program; }
public StudentAcademicCredentialAndStudentResponse setCurrentProgram(String value) { this.current_program = value; return this; }
public String getAppliedToGraduateFromPrograms() { return applied_to_graduate_from_programs; }
public StudentAcademicCredentialAndStudentResponse setAppliedToGraduateFromPrograms(String value) { this.applied_to_graduate_from_programs = value; return this; }
public String getAdditionalInstructors() { return additional_instructors; }
public StudentAcademicCredentialAndStudentResponse setAdditionalInstructors(String value) { this.additional_instructors = value; return this; }
public String getStacUuid() { return stac_uuid; }
public StudentAcademicCredentialAndStudentResponse setStacUuid(String value) { this.stac_uuid = value; return this; }
public Integer getSectionId() { return section_id; }
public StudentAcademicCredentialAndStudentResponse setSectionId(Integer value) { this.section_id = value; return this; }
public String getCourseName() { return course_name; }
public StudentAcademicCredentialAndStudentResponse setCourseName(String value) { this.course_name = value; return this; }
public String getSectionCode() { return section_code; }
public StudentAcademicCredentialAndStudentResponse setSectionCode(String value) { this.section_code = value; return this; }
public String getSubject() { return subject; }
public StudentAcademicCredentialAndStudentResponse setSubject(String value) { this.subject = value; return this; }
public Integer getCourseLevel() { return course_level; }
public StudentAcademicCredentialAndStudentResponse setCourseLevel(Integer value) { this.course_level = value; return this; }
public String getTitle() { return title; }
public StudentAcademicCredentialAndStudentResponse setTitle(String value) { this.title = value; return this; }
public String getLocation() { return location; }
public StudentAcademicCredentialAndStudentResponse setLocation(String value) { this.location = value; return this; }
public Boolean getIsAudio() { return is_audio; }
public StudentAcademicCredentialAndStudentResponse setIsAudio(Boolean value) { this.is_audio = value; return this; }
public BigDecimal getCreditValue() { return credit_value; }
public StudentAcademicCredentialAndStudentResponse setCreditValue(BigDecimal value) { this.credit_value = value; return this; }
public BigDecimal getAuditValue() { return audit_value; }
public StudentAcademicCredentialAndStudentResponse setAuditValue(BigDecimal value) { this.audit_value = value; return this; }
public Boolean getIsAudit() { return is_audit; }
public StudentAcademicCredentialAndStudentResponse setIsAudit(Boolean value) { this.is_audit = value; return this; }
public Boolean getIsPassFail() { return is_pass_fail; }
public StudentAcademicCredentialAndStudentResponse setIsPassFail(Boolean value) { this.is_pass_fail = value; return this; }
public String getGrade() { return grade; }
public StudentAcademicCredentialAndStudentResponse setGrade(String value) { this.grade = value; return this; }
public Boolean getIsGradeFinal() { return is_grade_final; }
public StudentAcademicCredentialAndStudentResponse setIsGradeFinal(Boolean value) { this.is_grade_final = value; return this; }
public BigDecimal getGpaCredits() { return gpa_credits; }
public StudentAcademicCredentialAndStudentResponse setGpaCredits(BigDecimal value) { this.gpa_credits = value; return this; }
public BigDecimal getGradePoints() { return grade_points; }
public StudentAcademicCredentialAndStudentResponse setGradePoints(BigDecimal value) { this.grade_points = value; return this; }
public String getAcademicLevel() { return academic_level; }
public StudentAcademicCredentialAndStudentResponse setAcademicLevel(String value) { this.academic_level = value; return this; }
public String getPrintedComments() { return printed_comments; }
public StudentAcademicCredentialAndStudentResponse setPrintedComments(String value) { this.printed_comments = value; return this; }
public String getTerm() { return term; }
public StudentAcademicCredentialAndStudentResponse setTerm(String value) { this.term = value; return this; }
public String getReportingTerm() { return reporting_term; }
public StudentAcademicCredentialAndStudentResponse setReportingTerm(String value) { this.reporting_term = value; return this; }
public Integer getReportingYear() { return reporting_year; }
public StudentAcademicCredentialAndStudentResponse setReportingYear(Integer value) { this.reporting_year = value; return this; }
public String getCurrentStatus() { return current_status; }
public StudentAcademicCredentialAndStudentResponse setCurrentStatus(String value) { this.current_status = value; return this; }
public String getAddedBy() { return added_by; }
public StudentAcademicCredentialAndStudentResponse setAddedBy(String value) { this.added_by = value; return this; }
public Date getAddedDate() { return added_date; }
public StudentAcademicCredentialAndStudentResponse setAddedDate(Date value) { this.added_date = value; return this; }
public String getChangedBy() { return changed_by; }
public StudentAcademicCredentialAndStudentResponse setChangedBy(String value) { this.changed_by = value; return this; }
public Date getChangedDate() { return changed_date; }
public StudentAcademicCredentialAndStudentResponse setChangedDate(Date value) { this.changed_date = value; return this; }
}
public static class StudentAcademicCredentialExtensionResponse
{
public String uuid = null;
public String stac_uuid = null;
public Integer regent_id = null;
public String first_name = null;
public String last_name = null;
public String course_name = null;
public String section_code = null;
public String location_code = null;
public String title = null;
public String term = null;
public String reporting_term = null;
public Boolean is_audit = null;
public Boolean is_active = null;
public BigDecimal amount = null;
public ArrayList<InstructorResponse> instructors = null;
public Date due_date = null;
public Date received_date = null;
public String grade_penalty = null;
public String assignments = null;
public String comments = null;
public Date added_date = null;
public String added_by = null;
public Date changed_date = null;
public String changed_by = null;
public String getUuid() { return uuid; }
public StudentAcademicCredentialExtensionResponse setUuid(String value) { this.uuid = value; return this; }
public String getStacUuid() { return stac_uuid; }
public StudentAcademicCredentialExtensionResponse setStacUuid(String value) { this.stac_uuid = value; return this; }
public Integer getRegentId() { return regent_id; }
public StudentAcademicCredentialExtensionResponse setRegentId(Integer value) { this.regent_id = value; return this; }
public String getFirstName() { return first_name; }
public StudentAcademicCredentialExtensionResponse setFirstName(String value) { this.first_name = value; return this; }
public String getLastName() { return last_name; }
public StudentAcademicCredentialExtensionResponse setLastName(String value) { this.last_name = value; return this; }
public String getCourseName() { return course_name; }
public StudentAcademicCredentialExtensionResponse setCourseName(String value) { this.course_name = value; return this; }
public String getSectionCode() { return section_code; }
public StudentAcademicCredentialExtensionResponse setSectionCode(String value) { this.section_code = value; return this; }
public String getLocationCode() { return location_code; }
public StudentAcademicCredentialExtensionResponse setLocationCode(String value) { this.location_code = value; return this; }
public String getTitle() { return title; }
public StudentAcademicCredentialExtensionResponse setTitle(String value) { this.title = value; return this; }
public String getTerm() { return term; }
public StudentAcademicCredentialExtensionResponse setTerm(String value) { this.term = value; return this; }
public String getReportingTerm() { return reporting_term; }
public StudentAcademicCredentialExtensionResponse setReportingTerm(String value) { this.reporting_term = value; return this; }
public Boolean getIsAudit() { return is_audit; }
public StudentAcademicCredentialExtensionResponse setIsAudit(Boolean value) { this.is_audit = value; return this; }
public Boolean getIsActive() { return is_active; }
public StudentAcademicCredentialExtensionResponse setIsActive(Boolean value) { this.is_active = value; return this; }
public BigDecimal getAmount() { return amount; }
public StudentAcademicCredentialExtensionResponse setAmount(BigDecimal value) { this.amount = value; return this; }
public ArrayList<InstructorResponse> getInstructors() { return instructors; }
public StudentAcademicCredentialExtensionResponse setInstructors(ArrayList<InstructorResponse> value) { this.instructors = value; return this; }
public Date getDueDate() { return due_date; }
public StudentAcademicCredentialExtensionResponse setDueDate(Date value) { this.due_date = value; return this; }
public Date getReceivedDate() { return received_date; }
public StudentAcademicCredentialExtensionResponse setReceivedDate(Date value) { this.received_date = value; return this; }
public String getGradePenalty() { return grade_penalty; }
public StudentAcademicCredentialExtensionResponse setGradePenalty(String value) { this.grade_penalty = value; return this; }
public String getAssignments() { return assignments; }
public StudentAcademicCredentialExtensionResponse setAssignments(String value) { this.assignments = value; return this; }
public String getComments() { return comments; }
public StudentAcademicCredentialExtensionResponse setComments(String value) { this.comments = value; return this; }
public Date getAddedDate() { return added_date; }
public StudentAcademicCredentialExtensionResponse setAddedDate(Date value) { this.added_date = value; return this; }
public String getAddedBy() { return added_by; }
public StudentAcademicCredentialExtensionResponse setAddedBy(String value) { this.added_by = value; return this; }
public Date getChangedDate() { return changed_date; }
public StudentAcademicCredentialExtensionResponse setChangedDate(Date value) { this.changed_date = value; return this; }
public String getChangedBy() { return changed_by; }
public StudentAcademicCredentialExtensionResponse setChangedBy(String value) { this.changed_by = 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 GradeResponse
{
public ResponseStatus responseStatus = null;
public Integer id = null;
public String grade_code = null;
public String grade_name = null;
public BigDecimal grade_points = null;
public Boolean gpa_credit = null;
public Boolean completed_credit = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public GradeResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public Integer getId() { return id; }
public GradeResponse setId(Integer value) { this.id = value; return this; }
public String getGradeCode() { return grade_code; }
public GradeResponse setGradeCode(String value) { this.grade_code = value; return this; }
public String getGradeName() { return grade_name; }
public GradeResponse setGradeName(String value) { this.grade_name = value; return this; }
public BigDecimal getGradePoints() { return grade_points; }
public GradeResponse setGradePoints(BigDecimal value) { this.grade_points = value; return this; }
public Boolean isGpaCredit() { return gpa_credit; }
public GradeResponse setGpaCredit(Boolean value) { this.gpa_credit = value; return this; }
public Boolean isCompletedCredit() { return completed_credit; }
public GradeResponse setCompletedCredit(Boolean value) { this.completed_credit = value; return this; }
}
}
Java GradeByCourseRequest 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 /Academic/{secUUID}/Grade HTTP/1.1
Host: data.regent-college.edu
Accept: application/json
Content-Type: application/json
Content-Length: length
{"secUUID":"String","include_crosslist":false}
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"}},"secUUID":"String","gradingEndDate":"0001-01-01T00:00:00.0000000","overrideGradingEndDate":"0001-01-01T00:00:00.0000000","course_name":"String","title":"String","term":"String","crosslists_included":false,"has_crosslists":false,"studentAcademicCredentials":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"uuid":"String","regent_id":0,"student_name":"String","last_name":"String","first_name":"String","current_program":"String","applied_to_graduate_from_programs":"String","additional_instructors":"String","stac_uuid":"String","section_id":0,"course_name":"String","section_code":"String","subject":"String","course_level":0,"title":"String","location":"String","is_audio":false,"credit_value":0,"audit_value":0,"is_audit":false,"is_pass_fail":false,"grade":"String","is_grade_final":false,"gpa_credits":0,"grade_points":0,"academic_level":"String","printed_comments":"String","term":"String","reporting_term":"String","reporting_year":0,"current_status":"String","added_by":"String","added_date":"0001-01-01T00:00:00.0000000","changed_by":"String","changed_date":"0001-01-01T00:00:00.0000000"}],"studentAcademicCredentialRetakes":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"uuid":"String","regent_id":0,"student_name":"String","last_name":"String","first_name":"String","current_program":"String","applied_to_graduate_from_programs":"String","additional_instructors":"String","stac_uuid":"String","section_id":0,"course_name":"String","section_code":"String","subject":"String","course_level":0,"title":"String","location":"String","is_audio":false,"credit_value":0,"audit_value":0,"is_audit":false,"is_pass_fail":false,"grade":"String","is_grade_final":false,"gpa_credits":0,"grade_points":0,"academic_level":"String","printed_comments":"String","term":"String","reporting_term":"String","reporting_year":0,"current_status":"String","added_by":"String","added_date":"0001-01-01T00:00:00.0000000","changed_by":"String","changed_date":"0001-01-01T00:00:00.0000000"}],"studentAcademicCredentialExtensions":[{"uuid":"String","stac_uuid":"String","regent_id":0,"first_name":"String","last_name":"String","course_name":"String","section_code":"String","location_code":"String","title":"String","term":"String","reporting_term":"String","is_audit":false,"is_active":false,"amount":0,"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"}],"due_date":"0001-01-01T00:00:00.0000000","received_date":"0001-01-01T00:00:00.0000000","grade_penalty":"String","assignments":"String","comments":"String","added_date":"0001-01-01T00:00:00.0000000","added_by":"String","changed_date":"0001-01-01T00:00:00.0000000","changed_by":"String"}],"validGrades":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"id":0,"grade_code":"String","grade_name":"String","grade_points":0,"gpa_credit":false,"completed_credit":false}]}