regis

<back to all web services

DirectoryPersonRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
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 .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 /Directory/{directory_uuid} HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	directory_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
		}
	},
	directory_uuid: String,
	waiver: String,
	bday: 0001-01-01,
	spouse_bday: 0001-01-01,
	spouse_name: String,
	wedding_date: 0001-01-01,
	kids: String,
	home_country: String,
	quote: String,
	bio: String,
	interests: String,
	category: String,
	imageBase64: String,
	preferred_name: String,
	last_name: String,
	addr1: String,
	addr2: String,
	city: String,
	state: String,
	country: String,
	code: String,
	email: String,
	phone_home: String,
	phone_cell: String,
	program: String,
	field_of_work: String,
	church: String,
	is_student: False,
	is_staff: False,
	is_faculty: False
}