| Requires any of the roles: | Riskstore.Read, Riskstore.Write, Riskstore.Admin |
| GET | /api/riskstore/seed/status/{RequestId} | Get seed refresh status by request id | Returns the current status of a seed refresh request. Status values: Queued, Processing, Successful, Failed. |
|---|
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 GetSeedRefreshStatus implements IGet, IConvertible
{
/**
* Request id returned by the POST /seed/refresh/{TableName} call
*/
// @ApiMember(DataType="string", Description="Request id returned by the POST /seed/refresh/{TableName} call", Format="uuid", IsRequired=true)
String? requestId;
GetSeedRefreshStatus({this.requestId});
GetSeedRefreshStatus.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
requestId = json['requestId'];
return this;
}
Map<String, dynamic> toJson() => {
'requestId': requestId
};
getTypeName() => "GetSeedRefreshStatus";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'riskstoreng_dev.nephila.com', types: <String, TypeInfo> {
'SeedRefreshStatusResponse': TypeInfo(TypeOf.Class, create:() => SeedRefreshStatusResponse()),
'GetSeedRefreshStatus': TypeInfo(TypeOf.Class, create:() => GetSeedRefreshStatus()),
});
Dart GetSeedRefreshStatus DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /api/riskstore/seed/status/{RequestId} HTTP/1.1
Host: riskstoreng-dev.nephila.com
Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <SeedRefreshStatusResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Nephila.RiskStore.ServiceModel.Requests"> <CompletedUtc>0001-01-01T00:00:00</CompletedUtc> <CreatedUtc>0001-01-01T00:00:00</CreatedUtc> <ErrorMessage>String</ErrorMessage> <FailedCount>0</FailedCount> <OutputPath>String</OutputPath> <ProcessedCount>0</ProcessedCount> <RequestId>00000000-0000-0000-0000-000000000000</RequestId> <RowCount>0</RowCount> <SkippedCount>0</SkippedCount> <StartedUtc>0001-01-01T00:00:00</StartedUtc> <Status>String</Status> <TableName>String</TableName> <TotalCount>0</TotalCount> <UpdatedUtc>0001-01-01T00:00:00</UpdatedUtc> </SeedRefreshStatusResponse>