| GET | /{Workspace}/DocumentHtml/{ObjectId} |
|---|
import 'package:servicestack/servicestack.dart';
/**
* Returns the HTML rendered version of the requested document.
*/
class DocumentHtml implements IConvertible
{
String? Workspace;
String? ObjectId;
DocumentHtml({this.Workspace,this.ObjectId});
DocumentHtml.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
Workspace = json['Workspace'];
ObjectId = json['ObjectId'];
return this;
}
Map<String, dynamic> toJson() => {
'Workspace': Workspace,
'ObjectId': ObjectId
};
getTypeName() => "DocumentHtml";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'dev.fieldsquared.com', types: <String, TypeInfo> {
'DocumentHtml': TypeInfo(TypeOf.Class, create:() => DocumentHtml()),
});
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}/DocumentHtml/{ObjectId} HTTP/1.1
Host: dev.fieldsquared.com
Accept: text/csv