Required permission: | CreatePayments |
GET | /Person/{regent_id} |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class RegentIdExistsResponse implements IConvertible
{
ResponseStatus? responseStatus;
String? id;
String? firstName;
String? lastName;
RegentIdExistsResponse({this.responseStatus,this.id,this.firstName,this.lastName});
RegentIdExistsResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
id = json['id'];
firstName = json['firstName'];
lastName = json['lastName'];
return this;
}
Map<String, dynamic> toJson() => {
'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!),
'id': id,
'firstName': firstName,
'lastName': lastName
};
getTypeName() => "RegentIdExistsResponse";
TypeContext? context = _ctx;
}
class RegentIdExistsRequest implements IConvertible
{
String? regent_id;
RegentIdExistsRequest({this.regent_id});
RegentIdExistsRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
regent_id = json['regent_id'];
return this;
}
Map<String, dynamic> toJson() => {
'regent_id': regent_id
};
getTypeName() => "RegentIdExistsRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'RegentIdExistsResponse': TypeInfo(TypeOf.Class, create:() => RegentIdExistsResponse()),
'RegentIdExistsRequest': TypeInfo(TypeOf.Class, create:() => RegentIdExistsRequest()),
});
Dart RegentIdExistsRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Person/{regent_id} HTTP/1.1 Host: data.regent-college.edu Accept: text/csv
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"}},"id":"String","firstName":"String","lastName":"String"}