regis

<back to all web services

StudentAcademicCredentialAdditionalInstructorsRequest

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

class InstructorResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    int? regent_id;
    String? regent_login;
    String? preferred_name;
    String? first_name;
    String? last_name;
    String? full_name;
    String? email;
    String? image_base64;

    InstructorResponse({this.responseStatus,this.regent_id,this.regent_login,this.preferred_name,this.first_name,this.last_name,this.full_name,this.email,this.image_base64});
    InstructorResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        regent_id = json['regent_id'];
        regent_login = json['regent_login'];
        preferred_name = json['preferred_name'];
        first_name = json['first_name'];
        last_name = json['last_name'];
        full_name = json['full_name'];
        email = json['email'];
        image_base64 = json['image_base64'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'regent_id': regent_id,
        'regent_login': regent_login,
        'preferred_name': preferred_name,
        'first_name': first_name,
        'last_name': last_name,
        'full_name': full_name,
        'email': email,
        'image_base64': image_base64
    };

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

class StudentAcademicCredentialAdditionalInstructorsResponse implements IConvertible
{
    ResponseStatus? responseStatus;
    String? uuid;
    String? stac_uuid;
    String? course_name;
    String? term;
    String? reporting_term;
    List<InstructorResponse>? instructors;

    StudentAcademicCredentialAdditionalInstructorsResponse({this.responseStatus,this.uuid,this.stac_uuid,this.course_name,this.term,this.reporting_term,this.instructors});
    StudentAcademicCredentialAdditionalInstructorsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
        uuid = json['uuid'];
        stac_uuid = json['stac_uuid'];
        course_name = json['course_name'];
        term = json['term'];
        reporting_term = json['reporting_term'];
        instructors = JsonConverters.fromJson(json['instructors'],'List<InstructorResponse>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
        'uuid': uuid,
        'stac_uuid': stac_uuid,
        'course_name': course_name,
        'term': term,
        'reporting_term': reporting_term,
        'instructors': JsonConverters.toJson(instructors,'List<InstructorResponse>',context!)
    };

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

class StudentAcademicCredentialAdditionalInstructorsRequest implements IConvertible
{
    String? uuid;
    String? stac_uuid;

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

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

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

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

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

Dart StudentAcademicCredentialAdditionalInstructorsRequest DTOs

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

HTTP + CSV

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

POST /StudentAcademicCredential/{uuid}/AdditionalInstructors/{stac_uuid} HTTP/1.1 
Host: data.regent-college.edu 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"uuid":"String","stac_uuid":"String"}
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"uuid":"String","stac_uuid":"String","course_name":"String","term":"String","reporting_term":"String","instructors":[{"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}},"regent_id":0,"regent_login":"String","preferred_name":"String","first_name":"String","last_name":"String","full_name":"String","email":"String","image_base64":"String"}]}