Required role: | REGISUserRole |
POST | /Registration/Provisional |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class ProvisionalRegistrationsRequest
{
public String reporting_term = null;
public String authorizing_uuid = null;
public String getReportingTerm() { return reporting_term; }
public ProvisionalRegistrationsRequest setReportingTerm(String value) { this.reporting_term = value; return this; }
public String getAuthorizingUuid() { return authorizing_uuid; }
public ProvisionalRegistrationsRequest setAuthorizingUuid(String value) { this.authorizing_uuid = value; return this; }
}
public static class ProvisionalRegistrationsResponse
{
public ResponseStatus responseStatus = null;
public ArrayList<ProvisionalRegistrationResponse> provisional_registrations = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public ProvisionalRegistrationsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public ArrayList<ProvisionalRegistrationResponse> getProvisionalRegistrations() { return provisional_registrations; }
public ProvisionalRegistrationsResponse 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 ProvisionalRegistrationsRequest 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 /Registration/Provisional HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<ProvisionalRegistrationsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<authorizing_uuid>String</authorizing_uuid>
<reporting_term>String</reporting_term>
</ProvisionalRegistrationsRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <ProvisionalRegistrationsResponse 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> <provisional_registrations> <ProvisionalRegistrationResponse> <amount>0</amount> <course_name>String</course_name> <documents> <RegistrationDocumentResponse> <added_date>0001-01-01T00:00:00</added_date> <changed_date>0001-01-01T00:00:00</changed_date> <concentration>String</concentration> <course_name>String</course_name> <course_title>String</course_title> <document_code>String</document_code> <document_description>String</document_description> <document_json>String</document_json> <document_name>String</document_name> <email>String</email> <first_name>String</first_name> <gender>String</gender> <last_name>String</last_name> <program>String</program> <regent_id>0</regent_id> <reporting_term>String</reporting_term> <section_uuid>String</section_uuid> <uuid>String</uuid> </RegistrationDocumentResponse> </documents> <email>String</email> <is_audit>false</is_audit> <is_missing_requisites>false</is_missing_requisites> <is_other_restriction>false</is_other_restriction> <is_waitlist>false</is_waitlist> <regent_id>0</regent_id> <requested_date>0001-01-01T00:00:00</requested_date> <section_code>String</section_code> <section_uuid>String</section_uuid> <student_name>String</student_name> <student_section_uuid>String</student_section_uuid> <term>String</term> <title>String</title> <uuid>String</uuid> </ProvisionalRegistrationResponse> </provisional_registrations> </ProvisionalRegistrationsResponse>