| Requires any of the roles: | Riskstore.Read, Riskstore.Write, Riskstore.Admin |
| GET | /api/riskstore/seed/status | List recent seed refresh requests | Returns all seed refresh entries known to the running host process, newest first. Entries are lost on restart. |
|---|
import 'package:servicestack/servicestack.dart';
class SeedRefreshStatusResponse implements IConvertible
{
String? requestId;
String? tableName;
String? status;
DateTime? createdUtc;
DateTime? updatedUtc;
DateTime? startedUtc;
DateTime? completedUtc;
int? rowCount;
String? errorMessage;
String? outputPath;
int? totalCount;
int? processedCount;
int? skippedCount;
int? failedCount;
SeedRefreshStatusResponse({this.requestId,this.tableName,this.status,this.createdUtc,this.updatedUtc,this.startedUtc,this.completedUtc,this.rowCount,this.errorMessage,this.outputPath,this.totalCount,this.processedCount,this.skippedCount,this.failedCount});
SeedRefreshStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
requestId = json['requestId'];
tableName = json['tableName'];
status = json['status'];
createdUtc = JsonConverters.fromJson(json['createdUtc'],'DateTime',context!);
updatedUtc = JsonConverters.fromJson(json['updatedUtc'],'DateTime',context!);
startedUtc = JsonConverters.fromJson(json['startedUtc'],'DateTime',context!);
completedUtc = JsonConverters.fromJson(json['completedUtc'],'DateTime',context!);
rowCount = json['rowCount'];
errorMessage = json['errorMessage'];
outputPath = json['outputPath'];
totalCount = json['totalCount'];
processedCount = json['processedCount'];
skippedCount = json['skippedCount'];
failedCount = json['failedCount'];
return this;
}
Map<String, dynamic> toJson() => {
'requestId': requestId,
'tableName': tableName,
'status': status,
'createdUtc': JsonConverters.toJson(createdUtc,'DateTime',context!),
'updatedUtc': JsonConverters.toJson(updatedUtc,'DateTime',context!),
'startedUtc': JsonConverters.toJson(startedUtc,'DateTime',context!),
'completedUtc': JsonConverters.toJson(completedUtc,'DateTime',context!),
'rowCount': rowCount,
'errorMessage': errorMessage,
'outputPath': outputPath,
'totalCount': totalCount,
'processedCount': processedCount,
'skippedCount': skippedCount,
'failedCount': failedCount
};
getTypeName() => "SeedRefreshStatusResponse";
TypeContext? context = _ctx;
}
class ListSeedRefreshStatusResponse implements IConvertible
{
List<SeedRefreshStatusResponse>? entries;
ListSeedRefreshStatusResponse({this.entries});
ListSeedRefreshStatusResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
entries = JsonConverters.fromJson(json['entries'],'List<SeedRefreshStatusResponse>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'entries': JsonConverters.toJson(entries,'List<SeedRefreshStatusResponse>',context!)
};
getTypeName() => "ListSeedRefreshStatusResponse";
TypeContext? context = _ctx;
}
class ListSeedRefreshStatus implements IGet, IConvertible
{
ListSeedRefreshStatus();
ListSeedRefreshStatus.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "ListSeedRefreshStatus";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'riskstoreng_dev.nephila.com', types: <String, TypeInfo> {
'SeedRefreshStatusResponse': TypeInfo(TypeOf.Class, create:() => SeedRefreshStatusResponse()),
'ListSeedRefreshStatusResponse': TypeInfo(TypeOf.Class, create:() => ListSeedRefreshStatusResponse()),
'List<SeedRefreshStatusResponse>': TypeInfo(TypeOf.Class, create:() => <SeedRefreshStatusResponse>[]),
'ListSeedRefreshStatus': TypeInfo(TypeOf.Class, create:() => ListSeedRefreshStatus()),
});
Dart ListSeedRefreshStatus 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 /api/riskstore/seed/status HTTP/1.1 Host: riskstoreng-dev.nephila.com Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length
{"entries":[{"requestId":"00000000000000000000000000000000","tableName":"String","status":"String","createdUtc":"0001-01-01T00:00:00.0000000Z","updatedUtc":"0001-01-01T00:00:00.0000000Z","startedUtc":"0001-01-01T00:00:00.0000000Z","completedUtc":"0001-01-01T00:00:00.0000000Z","rowCount":0,"errorMessage":"String","outputPath":"String","totalCount":0,"processedCount":0,"skippedCount":0,"failedCount":0}]}