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 .other suffix or ?format=other

HTTP + OTHER

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

{"uuid":"String","year":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"regent_id":0,"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":"String","gown_size":0,"project_title":"String","supervisor":"String","is_attending":false,"is_hood_requested":false,"is_hood_paid":false,"is_paid":false,"is_late":false,"year":0,"comments":"String","current_status":"String","current_status_date":"0001-01-01T00:00:00.0000000","added_date":"0001-01-01T00:00:00.0000000","applied_programs":[{"program_code":"String","concentration_code":"String","program_details":"String","comments":"String"}]}