regis

<back to all web services

StudentAcademicCredentialAdditionalInstructorsRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
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 .jsv suffix or ?format=jsv

HTTP + JSV

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: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	uuid: String,
	stac_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
		}
	},
	uuid: String,
	stac_uuid: String,
	course_name: String,
	term: String,
	reporting_term: String,
	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
		}
	]
}