regis

<back to all web services

StudentStatusRequest

Requires Authentication
Required permission:ReadStudentStatus
The following routes are available for this service:
POST/StudentStatus
import 'package:servicestack/servicestack.dart';

class StudentStatusResponse implements IConvertible
{
    bool? is_active;
    bool? is_authenticated;
    bool? is_admitted;

    StudentStatusResponse({this.is_active,this.is_authenticated,this.is_admitted});
    StudentStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

    Map<String, dynamic> toJson() => {
        'is_active': is_active,
        'is_authenticated': is_authenticated,
        'is_admitted': is_admitted
    };

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

class StudentStatusRequest implements IConvertible
{
    String? regent_login;
    String? password;

    StudentStatusRequest({this.regent_login,this.password});
    StudentStatusRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
    'StudentStatusResponse': TypeInfo(TypeOf.Class, create:() => StudentStatusResponse()),
    'StudentStatusRequest': TypeInfo(TypeOf.Class, create:() => StudentStatusRequest()),
});

Dart StudentStatusRequest 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 /StudentStatus HTTP/1.1 
Host: data.regent-college.edu 
Accept: application/xml
Content-Type: application/xml
Content-Length: length

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

<StudentStatusResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/regis.ClassLibrary.Responses">
  <is_active>false</is_active>
  <is_admitted>false</is_admitted>
  <is_authenticated>false</is_authenticated>
</StudentStatusResponse>