Required role: | REGISUserRole |
POST | /Directory/{directory_uuid} |
---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class DirectoryPersonRequest
{
public String directory_uuid = null;
public String getDirectoryUuid() { return directory_uuid; }
public DirectoryPersonRequest setDirectoryUuid(String value) { this.directory_uuid = value; return this; }
}
public static class DirectoryPersonResponse
{
public ResponseStatus responseStatus = null;
public String directory_uuid = null;
public String waiver = null;
public Date bday = null;
public Date spouse_bday = null;
public String spouse_name = null;
public Date wedding_date = null;
public String kids = null;
public String home_country = null;
public String quote = null;
public String bio = null;
public String interests = null;
public String category = null;
public String imageBase64 = null;
public String preferred_name = null;
public String last_name = 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 email = null;
public String phone_home = null;
public String phone_cell = null;
public String program = null;
public String field_of_work = null;
public String church = null;
public Boolean is_student = null;
public Boolean is_staff = null;
public Boolean is_faculty = null;
public ResponseStatus getResponseStatus() { return responseStatus; }
public DirectoryPersonResponse setResponseStatus(ResponseStatus value) { this.responseStatus = value; return this; }
public String getDirectoryUuid() { return directory_uuid; }
public DirectoryPersonResponse setDirectoryUuid(String value) { this.directory_uuid = value; return this; }
public String getWaiver() { return waiver; }
public DirectoryPersonResponse setWaiver(String value) { this.waiver = value; return this; }
public Date getBday() { return bday; }
public DirectoryPersonResponse setBday(Date value) { this.bday = value; return this; }
public Date getSpouseBday() { return spouse_bday; }
public DirectoryPersonResponse setSpouseBday(Date value) { this.spouse_bday = value; return this; }
public String getSpouseName() { return spouse_name; }
public DirectoryPersonResponse setSpouseName(String value) { this.spouse_name = value; return this; }
public Date getWeddingDate() { return wedding_date; }
public DirectoryPersonResponse setWeddingDate(Date value) { this.wedding_date = value; return this; }
public String getKids() { return kids; }
public DirectoryPersonResponse setKids(String value) { this.kids = value; return this; }
public String getHomeCountry() { return home_country; }
public DirectoryPersonResponse setHomeCountry(String value) { this.home_country = value; return this; }
public String getQuote() { return quote; }
public DirectoryPersonResponse setQuote(String value) { this.quote = value; return this; }
public String getBio() { return bio; }
public DirectoryPersonResponse setBio(String value) { this.bio = value; return this; }
public String getInterests() { return interests; }
public DirectoryPersonResponse setInterests(String value) { this.interests = value; return this; }
public String getCategory() { return category; }
public DirectoryPersonResponse setCategory(String value) { this.category = value; return this; }
public String getImageBase64() { return imageBase64; }
public DirectoryPersonResponse setImageBase64(String value) { this.imageBase64 = value; return this; }
public String getPreferredName() { return preferred_name; }
public DirectoryPersonResponse setPreferredName(String value) { this.preferred_name = value; return this; }
public String getLastName() { return last_name; }
public DirectoryPersonResponse setLastName(String value) { this.last_name = value; return this; }
public String getAddr1() { return addr1; }
public DirectoryPersonResponse setAddr1(String value) { this.addr1 = value; return this; }
public String getAddr2() { return addr2; }
public DirectoryPersonResponse setAddr2(String value) { this.addr2 = value; return this; }
public String getCity() { return city; }
public DirectoryPersonResponse setCity(String value) { this.city = value; return this; }
public String getState() { return state; }
public DirectoryPersonResponse setState(String value) { this.state = value; return this; }
public String getCountry() { return country; }
public DirectoryPersonResponse setCountry(String value) { this.country = value; return this; }
public String getCode() { return code; }
public DirectoryPersonResponse setCode(String value) { this.code = value; return this; }
public String getEmail() { return email; }
public DirectoryPersonResponse setEmail(String value) { this.email = value; return this; }
public String getPhoneHome() { return phone_home; }
public DirectoryPersonResponse setPhoneHome(String value) { this.phone_home = value; return this; }
public String getPhoneCell() { return phone_cell; }
public DirectoryPersonResponse setPhoneCell(String value) { this.phone_cell = value; return this; }
public String getProgram() { return program; }
public DirectoryPersonResponse setProgram(String value) { this.program = value; return this; }
public String getFieldOfWork() { return field_of_work; }
public DirectoryPersonResponse setFieldOfWork(String value) { this.field_of_work = value; return this; }
public String getChurch() { return church; }
public DirectoryPersonResponse setChurch(String value) { this.church = value; return this; }
public Boolean getIsStudent() { return is_student; }
public DirectoryPersonResponse setIsStudent(Boolean value) { this.is_student = value; return this; }
public Boolean getIsStaff() { return is_staff; }
public DirectoryPersonResponse setIsStaff(Boolean value) { this.is_staff = value; return this; }
public Boolean getIsFaculty() { return is_faculty; }
public DirectoryPersonResponse setIsFaculty(Boolean value) { this.is_faculty = value; return this; }
}
}
Java DirectoryPersonRequest 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 /Directory/{directory_uuid} HTTP/1.1
Host: data.regent-college.edu
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<DirectoryPersonRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Requests">
<directory_uuid>String</directory_uuid>
</DirectoryPersonRequest>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <DirectoryPersonResponse 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> <addr1>String</addr1> <addr2>String</addr2> <bday>0001-01-01T00:00:00</bday> <bio>String</bio> <category>String</category> <church>String</church> <city>String</city> <code>String</code> <country>String</country> <directory_uuid>String</directory_uuid> <email>String</email> <field_of_work>String</field_of_work> <home_country>String</home_country> <imageBase64>String</imageBase64> <interests>String</interests> <is_faculty>false</is_faculty> <is_staff>false</is_staff> <is_student>false</is_student> <kids>String</kids> <last_name>String</last_name> <phone_cell>String</phone_cell> <phone_home>String</phone_home> <preferred_name>String</preferred_name> <program>String</program> <quote>String</quote> <spouse_bday>0001-01-01T00:00:00</spouse_bday> <spouse_name>String</spouse_name> <state>String</state> <waiver>String</waiver> <wedding_date>0001-01-01T00:00:00</wedding_date> </DirectoryPersonResponse>