| GET | /dailychecks | Run daily checks for API |
|---|
import 'package:servicestack/servicestack.dart';
class DailyCheckResult implements IConvertible
{
String? CheckName;
bool? Status;
String? Message;
List<String>? Details;
DailyCheckResult({this.CheckName,this.Status,this.Message,this.Details});
DailyCheckResult.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
CheckName = json['CheckName'];
Status = json['Status'];
Message = json['Message'];
Details = JsonConverters.fromJson(json['Details'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'CheckName': CheckName,
'Status': Status,
'Message': Message,
'Details': JsonConverters.toJson(Details,'List<String>',context!)
};
getTypeName() => "DailyCheckResult";
TypeContext? context = _ctx;
}
class DailyCheckResponse implements IConvertible
{
List<DailyCheckResult>? Results = [];
DailyCheckResponse({this.Results});
DailyCheckResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Results = JsonConverters.fromJson(json['Results'],'List<DailyCheckResult>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'Results': JsonConverters.toJson(Results,'List<DailyCheckResult>',context!)
};
getTypeName() => "DailyCheckResponse";
TypeContext? context = _ctx;
}
class DailyCheckRequest implements IGet, IConvertible
{
DailyCheckRequest();
DailyCheckRequest.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "DailyCheckRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'prod_api_agency_orch_mb_dhc.rapp_customers.co.uk', types: <String, TypeInfo> {
'DailyCheckResult': TypeInfo(TypeOf.Class, create:() => DailyCheckResult()),
'DailyCheckResponse': TypeInfo(TypeOf.Class, create:() => DailyCheckResponse()),
'List<DailyCheckResult>': TypeInfo(TypeOf.Class, create:() => <DailyCheckResult>[]),
'DailyCheckRequest': TypeInfo(TypeOf.Class, create:() => DailyCheckRequest()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /dailychecks HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: text/jsv
HTTP/1.1 200 OK
Content-Type: text/jsv
Content-Length: length
{
Results:
[
{
}
]
}