Required role: | REGISUserRole |
POST | /StudentAcademicCredential/{uuid}/AdditionalInstructors/{stac_uuid} |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class StudentAcademicCredentialAdditionalInstructorsRequest
{
public String uuid = null;
public String stac_uuid = null;
public String getUuid() { return uuid; }
public StudentAcademicCredentialAdditionalInstructorsRequest setUuid(String value) { this.uuid = value; return this; }
public String getStacUuid() { return stac_uuid; }
public StudentAcademicCredentialAdditionalInstructorsRequest setStacUuid(String value) { this.stac_uuid = value; return this; }
}
public static class StudentAcademicCredentialAdditionalInstructorsResponse
{
public ResponseStatus responseStatus = null;
public String uuid = null;
public String stac_uuid = null;
public String course_name = null;
public String term = null;
public String reporting_term = null;
public ArrayList<InstructorResponse> instructors = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public StudentAcademicCredentialAdditionalInstructorsResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getUuid() { return uuid; }
public StudentAcademicCredentialAdditionalInstructorsResponse setUuid(String value) { this.uuid = value; return this; }
public String getStacUuid() { return stac_uuid; }
public StudentAcademicCredentialAdditionalInstructorsResponse setStacUuid(String value) { this.stac_uuid = value; return this; }
public String getCourseName() { return course_name; }
public StudentAcademicCredentialAdditionalInstructorsResponse setCourseName(String value) { this.course_name = value; return this; }
public String getTerm() { return term; }
public StudentAcademicCredentialAdditionalInstructorsResponse setTerm(String value) { this.term = value; return this; }
public String getReportingTerm() { return reporting_term; }
public StudentAcademicCredentialAdditionalInstructorsResponse setReportingTerm(String value) { this.reporting_term = value; return this; }
public ArrayList<InstructorResponse> getInstructors() { return instructors; }
public StudentAcademicCredentialAdditionalInstructorsResponse setInstructors(ArrayList<InstructorResponse> value) { this.instructors = 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; }
}
}
Java StudentAcademicCredentialAdditionalInstructorsRequest 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 /StudentAcademicCredential/{uuid}/AdditionalInstructors/{stac_uuid} HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<StudentAcademicCredentialAdditionalInstructorsRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<stac_uuid>String</stac_uuid>
<uuid>String</uuid>
</StudentAcademicCredentialAdditionalInstructorsRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <StudentAcademicCredentialAdditionalInstructorsResponse 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> <course_name>String</course_name> <instructors> <InstructorResponse> <ResponseStatus xmlns:d4p1="http://schemas.servicestack.net/types"> <d4p1:ErrorCode>String</d4p1:ErrorCode> <d4p1:Message>String</d4p1:Message> <d4p1:StackTrace>String</d4p1:StackTrace> <d4p1:Errors> <d4p1:ResponseError> <d4p1:ErrorCode>String</d4p1:ErrorCode> <d4p1:FieldName>String</d4p1:FieldName> <d4p1:Message>String</d4p1:Message> <d4p1:Meta xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d7p1:KeyValueOfstringstring> <d7p1:Key>String</d7p1:Key> <d7p1:Value>String</d7p1:Value> </d7p1:KeyValueOfstringstring> </d4p1:Meta> </d4p1:ResponseError> </d4p1:Errors> <d4p1: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> </d4p1: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> </instructors> <reporting_term>String</reporting_term> <stac_uuid>String</stac_uuid> <term>String</term> <uuid>String</uuid> </StudentAcademicCredentialAdditionalInstructorsResponse>