regis

<back to all web services

SectionTARequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/Sections/TA/{uuid}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class SectionTARequest
    {
        public String uuid = null;
        
        public String getUuid() { return uuid; }
        public SectionTARequest setUuid(String value) { this.uuid = value; return this; }
    }

    public static class SectionTAResponse
    {
        public String uuid = null;
        public String course_name = null;
        public String title = null;
        public String term = null;
        public String reporting_term = null;
        public ArrayList<PersonSimpleResponse> taList = null;
        
        public String getUuid() { return uuid; }
        public SectionTAResponse setUuid(String value) { this.uuid = value; return this; }
        public String getCourseName() { return course_name; }
        public SectionTAResponse setCourseName(String value) { this.course_name = value; return this; }
        public String getTitle() { return title; }
        public SectionTAResponse setTitle(String value) { this.title = value; return this; }
        public String getTerm() { return term; }
        public SectionTAResponse setTerm(String value) { this.term = value; return this; }
        public String getReportingTerm() { return reporting_term; }
        public SectionTAResponse setReportingTerm(String value) { this.reporting_term = value; return this; }
        public ArrayList<PersonSimpleResponse> getTaList() { return taList; }
        public SectionTAResponse setTaList(ArrayList<PersonSimpleResponse> value) { this.taList = value; return this; }
    }

    public static class PersonSimpleResponse
    {
        public ResponseStatus responseStatus = null;
        public Integer regent_id = null;
        public Integer ubc_id = null;
        public String uuid = null;
        public String regent_login = null;
        public String first_name = null;
        public String preferred_name = null;
        public String middle_name = null;
        public String last_name = null;
        public String email = null;
        public String phone_home = null;
        public String phone_cell = null;
        public String phone_bus = null;
        public String addr1 = null;
        public String addr2 = null;
        public String city = null;
        public String state = null;
        public String country = null;
        public String code = null;
        public String citizenship = null;
        public String citizenship_other = null;
        public String permanent_resident = null;
        public Date dob = null;
        public Boolean is_student = null;
        public Boolean is_faculty = null;
        public Boolean is_vendor = null;
        
        public ResponseStatus getResponseStatus() { return responseStatus; }
        public PersonSimpleResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
        public Integer getRegentId() { return regent_id; }
        public PersonSimpleResponse setRegentId(Integer value) { this.regent_id = value; return this; }
        public Integer getUbcId() { return ubc_id; }
        public PersonSimpleResponse setUbcId(Integer value) { this.ubc_id = value; return this; }
        public String getUuid() { return uuid; }
        public PersonSimpleResponse setUuid(String value) { this.uuid = value; return this; }
        public String getRegentLogin() { return regent_login; }
        public PersonSimpleResponse setRegentLogin(String value) { this.regent_login = value; return this; }
        public String getFirstName() { return first_name; }
        public PersonSimpleResponse setFirstName(String value) { this.first_name = value; return this; }
        public String getPreferredName() { return preferred_name; }
        public PersonSimpleResponse setPreferredName(String value) { this.preferred_name = value; return this; }
        public String getMiddleName() { return middle_name; }
        public PersonSimpleResponse setMiddleName(String value) { this.middle_name = value; return this; }
        public String getLastName() { return last_name; }
        public PersonSimpleResponse setLastName(String value) { this.last_name = value; return this; }
        public String getEmail() { return email; }
        public PersonSimpleResponse setEmail(String value) { this.email = value; return this; }
        public String getPhoneHome() { return phone_home; }
        public PersonSimpleResponse setPhoneHome(String value) { this.phone_home = value; return this; }
        public String getPhoneCell() { return phone_cell; }
        public PersonSimpleResponse setPhoneCell(String value) { this.phone_cell = value; return this; }
        public String getPhoneBus() { return phone_bus; }
        public PersonSimpleResponse setPhoneBus(String value) { this.phone_bus = value; return this; }
        public String getAddr1() { return addr1; }
        public PersonSimpleResponse setAddr1(String value) { this.addr1 = value; return this; }
        public String getAddr2() { return addr2; }
        public PersonSimpleResponse setAddr2(String value) { this.addr2 = value; return this; }
        public String getCity() { return city; }
        public PersonSimpleResponse setCity(String value) { this.city = value; return this; }
        public String getState() { return state; }
        public PersonSimpleResponse setState(String value) { this.state = value; return this; }
        public String getCountry() { return country; }
        public PersonSimpleResponse setCountry(String value) { this.country = value; return this; }
        public String getCode() { return code; }
        public PersonSimpleResponse setCode(String value) { this.code = value; return this; }
        public String getCitizenship() { return citizenship; }
        public PersonSimpleResponse setCitizenship(String value) { this.citizenship = value; return this; }
        public String getCitizenshipOther() { return citizenship_other; }
        public PersonSimpleResponse setCitizenshipOther(String value) { this.citizenship_other = value; return this; }
        public String getPermanentResident() { return permanent_resident; }
        public PersonSimpleResponse setPermanentResident(String value) { this.permanent_resident = value; return this; }
        public Date getDob() { return dob; }
        public PersonSimpleResponse setDob(Date value) { this.dob = value; return this; }
        public Boolean getIsStudent() { return is_student; }
        public PersonSimpleResponse setIsStudent(Boolean value) { this.is_student = value; return this; }
        public Boolean getIsFaculty() { return is_faculty; }
        public PersonSimpleResponse setIsFaculty(Boolean value) { this.is_faculty = value; return this; }
        public Boolean getIsVendor() { return is_vendor; }
        public PersonSimpleResponse setIsVendor(Boolean value) { this.is_vendor = value; return this; }
    }

}

Java SectionTARequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml

HTTP + XML

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /Sections/TA/{uuid} HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

<SectionTARequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
  <uuid>String</uuid>
</SectionTARequest>
HTTP/1.1 200 OK
Content-Type: application/xml
Content-Length: length

<SectionTAResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses">
  <TAList>
    <PersonSimpleResponse>
      <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>
      <addr1>String</addr1>
      <addr2>String</addr2>
      <citizenship>String</citizenship>
      <citizenship_other>String</citizenship_other>
      <city>String</city>
      <code>String</code>
      <country>String</country>
      <dob>0001-01-01T00:00:00</dob>
      <email>String</email>
      <first_name>String</first_name>
      <is_faculty>false</is_faculty>
      <is_student>false</is_student>
      <is_vendor>false</is_vendor>
      <last_name>String</last_name>
      <middle_name>String</middle_name>
      <permanent_resident>String</permanent_resident>
      <phone_bus>String</phone_bus>
      <phone_cell>String</phone_cell>
      <phone_home>String</phone_home>
      <preferred_name>String</preferred_name>
      <regent_id>0</regent_id>
      <regent_login>String</regent_login>
      <state>String</state>
      <ubc_id>0</ubc_id>
      <uuid>String</uuid>
    </PersonSimpleResponse>
  </TAList>
  <course_name>String</course_name>
  <reporting_term>String</reporting_term>
  <term>String</term>
  <title>String</title>
  <uuid>String</uuid>
</SectionTAResponse>