regis

<back to all web services

RegentDegreesRequest

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

class RegentDegreeResponse implements IConvertible
{
    int? id;
    String? program_code;
    String? program_name;
    String? concentration_code;
    String? concentration_name;
    DateTime? graduation_month;
    DateTime? start_date;
    DateTime? end_date;
    double? gpa;
    String? academic_level;
    DateTime? commencement_date;
    DateTime? added_date;
    String? added_by;
    DateTime? changed_date;
    String? changed_by;
    DateTime? timestamp;

    RegentDegreeResponse({this.id,this.program_code,this.program_name,this.concentration_code,this.concentration_name,this.graduation_month,this.start_date,this.end_date,this.gpa,this.academic_level,this.commencement_date,this.added_date,this.added_by,this.changed_date,this.changed_by,this.timestamp});
    RegentDegreeResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id = json['id'];
        program_code = json['program_code'];
        program_name = json['program_name'];
        concentration_code = json['concentration_code'];
        concentration_name = json['concentration_name'];
        graduation_month = JsonConverters.fromJson(json['graduation_month'],'DateTime',context!);
        start_date = JsonConverters.fromJson(json['start_date'],'DateTime',context!);
        end_date = JsonConverters.fromJson(json['end_date'],'DateTime',context!);
        gpa = JsonConverters.toDouble(json['gpa']);
        academic_level = json['academic_level'];
        commencement_date = JsonConverters.fromJson(json['commencement_date'],'DateTime',context!);
        added_date = JsonConverters.fromJson(json['added_date'],'DateTime',context!);
        added_by = json['added_by'];
        changed_date = JsonConverters.fromJson(json['changed_date'],'DateTime',context!);
        changed_by = json['changed_by'];
        timestamp = JsonConverters.fromJson(json['timestamp'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id': id,
        'program_code': program_code,
        'program_name': program_name,
        'concentration_code': concentration_code,
        'concentration_name': concentration_name,
        'graduation_month': JsonConverters.toJson(graduation_month,'DateTime',context!),
        'start_date': JsonConverters.toJson(start_date,'DateTime',context!),
        'end_date': JsonConverters.toJson(end_date,'DateTime',context!),
        'gpa': gpa,
        'academic_level': academic_level,
        'commencement_date': JsonConverters.toJson(commencement_date,'DateTime',context!),
        'added_date': JsonConverters.toJson(added_date,'DateTime',context!),
        'added_by': added_by,
        'changed_date': JsonConverters.toJson(changed_date,'DateTime',context!),
        'changed_by': changed_by,
        'timestamp': JsonConverters.toJson(timestamp,'DateTime',context!)
    };

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

class ProgramResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    int? id;
    String? program_code;
    String? program_pretty_code;
    String? program_long_name;
    String? available_concentrations;
    bool? is_active;
    DateTime? timestamp;

    ProgramResponse({this.responseStatus,this.id,this.program_code,this.program_pretty_code,this.program_long_name,this.available_concentrations,this.is_active,this.timestamp});
    ProgramResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        id = json['id'];
        program_code = json['program_code'];
        program_pretty_code = json['program_pretty_code'];
        program_long_name = json['program_long_name'];
        available_concentrations = json['available_concentrations'];
        is_active = json['is_active'];
        timestamp = JsonConverters.fromJson(json['timestamp'],'DateTime',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'id': id,
        'program_code': program_code,
        'program_pretty_code': program_pretty_code,
        'program_long_name': program_long_name,
        'available_concentrations': available_concentrations,
        'is_active': is_active,
        'timestamp': JsonConverters.toJson(timestamp,'DateTime',context!)
    };

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

class ConcentrationResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    int? id;
    String? concentration_code;
    String? concentration_name;
    bool? is_active;

    ConcentrationResponse({this.responseStatus,this.id,this.concentration_code,this.concentration_name,this.is_active});
    ConcentrationResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        id = json['id'];
        concentration_code = json['concentration_code'];
        concentration_name = json['concentration_name'];
        is_active = json['is_active'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'id': id,
        'concentration_code': concentration_code,
        'concentration_name': concentration_name,
        'is_active': is_active
    };

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

class CatalogResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    int? id;
    String? catalog_code;

    CatalogResponse({this.responseStatus,this.id,this.catalog_code});
    CatalogResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        id = json['id'];
        catalog_code = json['catalog_code'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'id': id,
        'catalog_code': catalog_code
    };

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

class RegentDegreesResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    int? regent_id;
    String? uuid;
    List<RegentDegreeResponse>? regent_degrees;
    List<ProgramResponse>? valid_programs;
    List<ConcentrationResponse>? valid_concentrations;
    List<CatalogResponse>? valid_catalogs;

    RegentDegreesResponse({this.responseStatus,this.regent_id,this.uuid,this.regent_degrees,this.valid_programs,this.valid_concentrations,this.valid_catalogs});
    RegentDegreesResponse.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'];
        regent_degrees = JsonConverters.fromJson(json['regent_degrees'],'List<RegentDegreeResponse>',context!);
        valid_programs = JsonConverters.fromJson(json['valid_programs'],'List<ProgramResponse>',context!);
        valid_concentrations = JsonConverters.fromJson(json['valid_concentrations'],'List<ConcentrationResponse>',context!);
        valid_catalogs = JsonConverters.fromJson(json['valid_catalogs'],'List<CatalogResponse>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'regent_id': regent_id,
        'uuid': uuid,
        'regent_degrees': JsonConverters.toJson(regent_degrees,'List<RegentDegreeResponse>',context!),
        'valid_programs': JsonConverters.toJson(valid_programs,'List<ProgramResponse>',context!),
        'valid_concentrations': JsonConverters.toJson(valid_concentrations,'List<ConcentrationResponse>',context!),
        'valid_catalogs': JsonConverters.toJson(valid_catalogs,'List<CatalogResponse>',context!)
    };

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

class RegentDegreesRequest implements IConvertible
{
    String? uuid;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
    'RegentDegreeResponse': TypeInfo(TypeOf.Class, create:() => RegentDegreeResponse()),
    'ProgramResponse': TypeInfo(TypeOf.Class, create:() => ProgramResponse()),
    'ConcentrationResponse': TypeInfo(TypeOf.Class, create:() => ConcentrationResponse()),
    'CatalogResponse': TypeInfo(TypeOf.Class, create:() => CatalogResponse()),
    'RegentDegreesResponse': TypeInfo(TypeOf.Class, create:() => RegentDegreesResponse()),
    'List<RegentDegreeResponse>': TypeInfo(TypeOf.Class, create:() => <RegentDegreeResponse>[]),
    'List<ProgramResponse>': TypeInfo(TypeOf.Class, create:() => <ProgramResponse>[]),
    'List<ConcentrationResponse>': TypeInfo(TypeOf.Class, create:() => <ConcentrationResponse>[]),
    'List<CatalogResponse>': TypeInfo(TypeOf.Class, create:() => <CatalogResponse>[]),
    'RegentDegreesRequest': TypeInfo(TypeOf.Class, create:() => RegentDegreesRequest()),
});

Dart RegentDegreesRequest 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 /Academic/{uuid}/RegentDegrees HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/jsv
Content-Type: text/jsv
Content-Length: length

{
	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
		}
	},
	regent_id: 0,
	uuid: String,
	regent_degrees: 
	[
		{
			id: 0,
			program_code: String,
			program_name: String,
			concentration_code: String,
			concentration_name: String,
			graduation_month: 0001-01-01,
			start_date: 0001-01-01,
			end_date: 0001-01-01,
			gpa: 0,
			academic_level: String,
			commencement_date: 0001-01-01,
			added_date: 0001-01-01,
			added_by: String,
			changed_date: 0001-01-01,
			changed_by: String,
			timestamp: 0001-01-01
		}
	],
	valid_programs: 
	[
		{
			responseStatus: 
			{
				errorCode: String,
				message: String,
				stackTrace: String,
				errors: 
				[
					{
						errorCode: String,
						fieldName: String,
						message: String,
						meta: 
						{
							String: String
						}
					}
				],
				meta: 
				{
					String: String
				}
			},
			id: 0,
			program_code: String,
			program_pretty_code: String,
			program_long_name: String,
			available_concentrations: String,
			is_active: False,
			timestamp: 0001-01-01
		}
	],
	valid_concentrations: 
	[
		{
			responseStatus: 
			{
				errorCode: String,
				message: String,
				stackTrace: String,
				errors: 
				[
					{
						errorCode: String,
						fieldName: String,
						message: String,
						meta: 
						{
							String: String
						}
					}
				],
				meta: 
				{
					String: String
				}
			},
			id: 0,
			concentration_code: String,
			concentration_name: String,
			is_active: False
		}
	],
	valid_catalogs: 
	[
		{
			responseStatus: 
			{
				errorCode: String,
				message: String,
				stackTrace: String,
				errors: 
				[
					{
						errorCode: String,
						fieldName: String,
						message: String,
						meta: 
						{
							String: String
						}
					}
				],
				meta: 
				{
					String: String
				}
			},
			id: 0,
			catalog_code: String
		}
	]
}