regis

<back to all web services

StudentGraduationRequest

Requires Authentication
Required role:REGISUserRole
The following routes are available for this service:
POST/StudentGraduation/{uuid}/{year}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class StudentGraduationProgramResponse implements IConvertible
{
    String? program_code;
    String? concentration_code;
    String? program_details;
    String? comments;

    StudentGraduationProgramResponse({this.program_code,this.concentration_code,this.program_details,this.comments});
    StudentGraduationProgramResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        program_code = json['program_code'];
        concentration_code = json['concentration_code'];
        program_details = json['program_details'];
        comments = json['comments'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'program_code': program_code,
        'concentration_code': concentration_code,
        'program_details': program_details,
        'comments': comments
    };

    getTypeName() => "StudentGraduationProgramResponse";
    TypeContext? context = _ctx;
}

class StudentGraduationResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    int? regent_id;
    String? uuid;
    String? first_name;
    String? preferred_name;
    String? middle_name;
    String? last_name;
    String? email;
    String? phonetic_first_name;
    String? phonetic_middle_name;
    String? phonetic_last_name;
    String? placement;
    String? placement_other;
    String? addr1;
    String? addr2;
    String? city;
    String? state;
    String? country;
    String? code;
    String? citizenship;
    String? citizenship_other;
    String? permanent_resident;
    String? previous_degrees;
    int? gown_size;
    String? project_title;
    String? supervisor;
    bool? is_attending;
    bool? is_hood_requested;
    bool? is_hood_paid;
    bool? is_paid;
    bool? is_late;
    int? year;
    String? comments;
    String? current_status;
    DateTime? current_status_date;
    DateTime? added_date;
    List<StudentGraduationProgramResponse>? applied_programs;

    StudentGraduationResponse({this.responseStatus,this.regent_id,this.uuid,this.first_name,this.preferred_name,this.middle_name,this.last_name,this.email,this.phonetic_first_name,this.phonetic_middle_name,this.phonetic_last_name,this.placement,this.placement_other,this.addr1,this.addr2,this.city,this.state,this.country,this.code,this.citizenship,this.citizenship_other,this.permanent_resident,this.previous_degrees,this.gown_size,this.project_title,this.supervisor,this.is_attending,this.is_hood_requested,this.is_hood_paid,this.is_paid,this.is_late,this.year,this.comments,this.current_status,this.current_status_date,this.added_date,this.applied_programs});
    StudentGraduationResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        regent_id = json['regent_id'];
        uuid = json['uuid'];
        first_name = json['first_name'];
        preferred_name = json['preferred_name'];
        middle_name = json['middle_name'];
        last_name = json['last_name'];
        email = json['email'];
        phonetic_first_name = json['phonetic_first_name'];
        phonetic_middle_name = json['phonetic_middle_name'];
        phonetic_last_name = json['phonetic_last_name'];
        placement = json['placement'];
        placement_other = json['placement_other'];
        addr1 = json['addr1'];
        addr2 = json['addr2'];
        city = json['city'];
        state = json['state'];
        country = json['country'];
        code = json['code'];
        citizenship = json['citizenship'];
        citizenship_other = json['citizenship_other'];
        permanent_resident = json['permanent_resident'];
        previous_degrees = json['previous_degrees'];
        gown_size = json['gown_size'];
        project_title = json['project_title'];
        supervisor = json['supervisor'];
        is_attending = json['is_attending'];
        is_hood_requested = json['is_hood_requested'];
        is_hood_paid = json['is_hood_paid'];
        is_paid = json['is_paid'];
        is_late = json['is_late'];
        year = json['year'];
        comments = json['comments'];
        current_status = json['current_status'];
        current_status_date = JsonConverters.fromJson(json['current_status_date'],'DateTime',context!);
        added_date = JsonConverters.fromJson(json['added_date'],'DateTime',context!);
        applied_programs = JsonConverters.fromJson(json['applied_programs'],'List<StudentGraduationProgramResponse>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'regent_id': regent_id,
        'uuid': uuid,
        'first_name': first_name,
        'preferred_name': preferred_name,
        'middle_name': middle_name,
        'last_name': last_name,
        'email': email,
        'phonetic_first_name': phonetic_first_name,
        'phonetic_middle_name': phonetic_middle_name,
        'phonetic_last_name': phonetic_last_name,
        'placement': placement,
        'placement_other': placement_other,
        'addr1': addr1,
        'addr2': addr2,
        'city': city,
        'state': state,
        'country': country,
        'code': code,
        'citizenship': citizenship,
        'citizenship_other': citizenship_other,
        'permanent_resident': permanent_resident,
        'previous_degrees': previous_degrees,
        'gown_size': gown_size,
        'project_title': project_title,
        'supervisor': supervisor,
        'is_attending': is_attending,
        'is_hood_requested': is_hood_requested,
        'is_hood_paid': is_hood_paid,
        'is_paid': is_paid,
        'is_late': is_late,
        'year': year,
        'comments': comments,
        'current_status': current_status,
        'current_status_date': JsonConverters.toJson(current_status_date,'DateTime',context!),
        'added_date': JsonConverters.toJson(added_date,'DateTime',context!),
        'applied_programs': JsonConverters.toJson(applied_programs,'List<StudentGraduationProgramResponse>',context!)
    };

    getTypeName() => "StudentGraduationResponse";
    TypeContext? context = _ctx;
}

class StudentGraduationRequest implements IConvertible
{
    String? uuid;
    int? year;

    StudentGraduationRequest({this.uuid,this.year});
    StudentGraduationRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        uuid = json['uuid'];
        year = json['year'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'uuid': uuid,
        'year': year
    };

    getTypeName() => "StudentGraduationRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
    'StudentGraduationProgramResponse': TypeInfo(TypeOf.Class, create:() => StudentGraduationProgramResponse()),
    'StudentGraduationResponse': TypeInfo(TypeOf.Class, create:() => StudentGraduationResponse()),
    'List<StudentGraduationProgramResponse>': TypeInfo(TypeOf.Class, create:() => <StudentGraduationProgramResponse>[]),
    'StudentGraduationRequest': TypeInfo(TypeOf.Class, create:() => StudentGraduationRequest()),
});

Dart StudentGraduationRequest 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 /StudentGraduation/{uuid}/{year} HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

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

<StudentGraduationResponse 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>
  <added_date>0001-01-01T00:00:00</added_date>
  <addr1>String</addr1>
  <addr2>String</addr2>
  <applied_programs>
    <StudentGraduationProgramResponse>
      <comments>String</comments>
      <concentration_code>String</concentration_code>
      <program_code>String</program_code>
      <program_details>String</program_details>
    </StudentGraduationProgramResponse>
  </applied_programs>
  <citizenship>String</citizenship>
  <citizenship_other>String</citizenship_other>
  <city>String</city>
  <code>String</code>
  <comments>String</comments>
  <country>String</country>
  <current_status>String</current_status>
  <current_status_date>0001-01-01T00:00:00</current_status_date>
  <email>String</email>
  <first_name>String</first_name>
  <gown_size>0</gown_size>
  <is_attending>false</is_attending>
  <is_hood_paid>false</is_hood_paid>
  <is_hood_requested>false</is_hood_requested>
  <is_late>false</is_late>
  <is_paid>false</is_paid>
  <last_name>String</last_name>
  <middle_name>String</middle_name>
  <permanent_resident>String</permanent_resident>
  <phonetic_first_name>String</phonetic_first_name>
  <phonetic_last_name>String</phonetic_last_name>
  <phonetic_middle_name>String</phonetic_middle_name>
  <placement>String</placement>
  <placement_other>String</placement_other>
  <preferred_name>String</preferred_name>
  <previous_degrees>String</previous_degrees>
  <project_title>String</project_title>
  <regent_id>0</regent_id>
  <state>String</state>
  <supervisor>String</supervisor>
  <uuid>String</uuid>
  <year>0</year>
</StudentGraduationResponse>