regis

<back to all web services

StudentGraduationUpdateRequest

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

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 StudentGraduationUpdateRequest implements IConvertible
{
    String? uuid;
    String? authorizing_uuid;
    int? year;
    String? first_name;
    String? middle_name;
    String? last_name;
    String? phonetic_first_name;
    String? phonetic_middle_name;
    String? phonetic_last_name;
    String? placement;
    String? placement_other;
    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;
    String? comments;
    String? current_status;
    DateTime? added_date;
    List<StudentGraduationProgramResponse>? applied_programs;

    StudentGraduationUpdateRequest({this.uuid,this.authorizing_uuid,this.year,this.first_name,this.middle_name,this.last_name,this.phonetic_first_name,this.phonetic_middle_name,this.phonetic_last_name,this.placement,this.placement_other,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.comments,this.current_status,this.added_date,this.applied_programs});
    StudentGraduationUpdateRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        uuid = json['uuid'];
        authorizing_uuid = json['authorizing_uuid'];
        year = json['year'];
        first_name = json['first_name'];
        middle_name = json['middle_name'];
        last_name = json['last_name'];
        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'];
        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'];
        comments = json['comments'];
        current_status = json['current_status'];
        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() => {
        'uuid': uuid,
        'authorizing_uuid': authorizing_uuid,
        'year': year,
        'first_name': first_name,
        'middle_name': middle_name,
        'last_name': last_name,
        'phonetic_first_name': phonetic_first_name,
        'phonetic_middle_name': phonetic_middle_name,
        'phonetic_last_name': phonetic_last_name,
        'placement': placement,
        'placement_other': placement_other,
        '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,
        'comments': comments,
        'current_status': current_status,
        'added_date': JsonConverters.toJson(added_date,'DateTime',context!),
        'applied_programs': JsonConverters.toJson(applied_programs,'List<StudentGraduationProgramResponse>',context!)
    };

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

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

Dart StudentGraduationUpdateRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

POST /StudentGraduation/{uuid}/{year}/Update HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"uuid":"String","authorizing_uuid":"String","year":0,"first_name":"String","middle_name":"String","last_name":"String","phonetic_first_name":"String","phonetic_middle_name":"String","phonetic_last_name":"String","placement":"String","placement_other":"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,"comments":"String","current_status":"String","added_date":"0001-01-01T00:00:00.0000000","applied_programs":[{"program_code":"String","concentration_code":"String","program_details":"String","comments":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}