Required role: | REGISUserRole |
POST | /Registration/{uuid}/Provisional |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ProvisionalRegistrationsForStudentRequest
{
public String uuid = null;
public String getUuid() { return uuid; }
public ProvisionalRegistrationsForStudentRequest setUuid(String value) { this.uuid = value; return this; }
}
public static class ProvisionalRegistrationsForStudentResponse
{
public ResponseStatus responseStatus = null;
public Integer regent_id = null;
public String uuid = null;
public ArrayList<ProvisionalRegistrationResponse> provisional_registrations = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public ProvisionalRegistrationsForStudentResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public Integer getRegentId() { return regent_id; }
public ProvisionalRegistrationsForStudentResponse setRegentId(Integer value) { this.regent_id = value; return this; }
public String getUuid() { return uuid; }
public ProvisionalRegistrationsForStudentResponse setUuid(String value) { this.uuid = value; return this; }
public ArrayList<ProvisionalRegistrationResponse> getProvisionalRegistrations() { return provisional_registrations; }
public ProvisionalRegistrationsForStudentResponse setProvisionalRegistrations(ArrayList<ProvisionalRegistrationResponse> value) { this.provisional_registrations = value; return this; }
}
public static class ProvisionalRegistrationResponse
{
public String uuid = null;
public Integer regent_id = null;
public String student_name = null;
public String email = null;
public String section_uuid = null;
public String student_section_uuid = null;
public String course_name = null;
public String section_code = null;
public String title = null;
public String term = null;
public BigDecimal amount = null;
public Boolean is_audit = null;
public Boolean is_waitlist = null;
public Boolean is_missing_requisites = null;
public Boolean is_other_restriction = null;
public ArrayList<RegistrationDocumentResponse> documents = null;
public Date requested_date = null;
public String getUuid() { return uuid; }
public ProvisionalRegistrationResponse setUuid(String value) { this.uuid = value; return this; }
public Integer getRegentId() { return regent_id; }
public ProvisionalRegistrationResponse setRegentId(Integer value) { this.regent_id = value; return this; }
public String getStudentName() { return student_name; }
public ProvisionalRegistrationResponse setStudentName(String value) { this.student_name = value; return this; }
public String getEmail() { return email; }
public ProvisionalRegistrationResponse setEmail(String value) { this.email = value; return this; }
public String getSectionUuid() { return section_uuid; }
public ProvisionalRegistrationResponse setSectionUuid(String value) { this.section_uuid = value; return this; }
public String getStudentSectionUuid() { return student_section_uuid; }
public ProvisionalRegistrationResponse setStudentSectionUuid(String value) { this.student_section_uuid = value; return this; }
public String getCourseName() { return course_name; }
public ProvisionalRegistrationResponse setCourseName(String value) { this.course_name = value; return this; }
public String getSectionCode() { return section_code; }
public ProvisionalRegistrationResponse setSectionCode(String value) { this.section_code = value; return this; }
public String getTitle() { return title; }
public ProvisionalRegistrationResponse setTitle(String value) { this.title = value; return this; }
public String getTerm() { return term; }
public ProvisionalRegistrationResponse setTerm(String value) { this.term = value; return this; }
public BigDecimal getAmount() { return amount; }
public ProvisionalRegistrationResponse setAmount(BigDecimal value) { this.amount = value; return this; }
public Boolean getIsAudit() { return is_audit; }
public ProvisionalRegistrationResponse setIsAudit(Boolean value) { this.is_audit = value; return this; }
public Boolean getIsWaitlist() { return is_waitlist; }
public ProvisionalRegistrationResponse setIsWaitlist(Boolean value) { this.is_waitlist = value; return this; }
public Boolean getIsMissingRequisites() { return is_missing_requisites; }
public ProvisionalRegistrationResponse setIsMissingRequisites(Boolean value) { this.is_missing_requisites = value; return this; }
public Boolean getIsOtherRestriction() { return is_other_restriction; }
public ProvisionalRegistrationResponse setIsOtherRestriction(Boolean value) { this.is_other_restriction = value; return this; }
public ArrayList<RegistrationDocumentResponse> getDocuments() { return documents; }
public ProvisionalRegistrationResponse setDocuments(ArrayList<RegistrationDocumentResponse> value) { this.documents = value; return this; }
public Date getRequestedDate() { return requested_date; }
public ProvisionalRegistrationResponse setRequestedDate(Date value) { this.requested_date = value; return this; }
}
public static class RegistrationDocumentResponse
{
public String uuid = null;
public Integer regent_id = null;
public String first_name = null;
public String last_name = null;
public String gender = null;
public String email = null;
public String program = null;
public String concentration = null;
public String section_uuid = null;
public String course_name = null;
public String course_title = null;
public String reporting_term = null;
public String document_code = null;
public String document_json = null;
public String document_name = null;
public String document_description = null;
public Date added_date = null;
public Date changed_date = null;
public String getUuid() { return uuid; }
public RegistrationDocumentResponse setUuid(String value) { this.uuid = value; return this; }
public Integer getRegentId() { return regent_id; }
public RegistrationDocumentResponse setRegentId(Integer value) { this.regent_id = value; return this; }
public String getFirstName() { return first_name; }
public RegistrationDocumentResponse setFirstName(String value) { this.first_name = value; return this; }
public String getLastName() { return last_name; }
public RegistrationDocumentResponse setLastName(String value) { this.last_name = value; return this; }
public String getGender() { return gender; }
public RegistrationDocumentResponse setGender(String value) { this.gender = value; return this; }
public String getEmail() { return email; }
public RegistrationDocumentResponse setEmail(String value) { this.email = value; return this; }
public String getProgram() { return program; }
public RegistrationDocumentResponse setProgram(String value) { this.program = value; return this; }
public String getConcentration() { return concentration; }
public RegistrationDocumentResponse setConcentration(String value) { this.concentration = value; return this; }
public String getSectionUuid() { return section_uuid; }
public RegistrationDocumentResponse setSectionUuid(String value) { this.section_uuid = value; return this; }
public String getCourseName() { return course_name; }
public RegistrationDocumentResponse setCourseName(String value) { this.course_name = value; return this; }
public String getCourseTitle() { return course_title; }
public RegistrationDocumentResponse setCourseTitle(String value) { this.course_title = value; return this; }
public String getReportingTerm() { return reporting_term; }
public RegistrationDocumentResponse setReportingTerm(String value) { this.reporting_term = value; return this; }
public String getDocumentCode() { return document_code; }
public RegistrationDocumentResponse setDocumentCode(String value) { this.document_code = value; return this; }
public String getDocumentJson() { return document_json; }
public RegistrationDocumentResponse setDocumentJson(String value) { this.document_json = value; return this; }
public String getDocumentName() { return document_name; }
public RegistrationDocumentResponse setDocumentName(String value) { this.document_name = value; return this; }
public String getDocumentDescription() { return document_description; }
public RegistrationDocumentResponse setDocumentDescription(String value) { this.document_description = value; return this; }
public Date getAddedDate() { return added_date; }
public RegistrationDocumentResponse setAddedDate(Date value) { this.added_date = value; return this; }
public Date getChangedDate() { return changed_date; }
public RegistrationDocumentResponse setChangedDate(Date value) { this.changed_date = value; return this; }
}
}
Java ProvisionalRegistrationsForStudentRequest DTOs
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 /Registration/{uuid}/Provisional 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 } }, regent_id: 0, uuid: String, provisional_registrations: [ { uuid: String, regent_id: 0, student_name: String, email: String, section_uuid: String, student_section_uuid: String, course_name: String, section_code: String, title: String, term: String, amount: 0, is_audit: False, is_waitlist: False, is_missing_requisites: False, is_other_restriction: False, documents: [ { uuid: String, regent_id: 0, first_name: String, last_name: String, gender: String, email: String, program: String, concentration: String, section_uuid: String, course_name: String, course_title: String, reporting_term: String, document_code: String, document_json: String, document_name: String, document_description: String, added_date: 0001-01-01, changed_date: 0001-01-01 } ], requested_date: 0001-01-01 } ] }