| GET | /{Workspace}/History/{OwningClass}/{OwningId} |
|---|
import 'package:servicestack/servicestack.dart';
/**
* Returns an HTML report showing the history of changes for the object with Class = OwningClass, Id = OwningId.
*/
class History implements IConvertible
{
String? OwningId;
String? OwningClass;
String? Workspace;
History({this.OwningId,this.OwningClass,this.Workspace});
History.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
OwningId = json['OwningId'];
OwningClass = json['OwningClass'];
Workspace = json['Workspace'];
return this;
}
Map<String, dynamic> toJson() => {
'OwningId': OwningId,
'OwningClass': OwningClass,
'Workspace': Workspace
};
getTypeName() => "History";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'History': TypeInfo(TypeOf.Class, create:() => History()),
});
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 /{Workspace}/History/{OwningClass}/{OwningId} HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv