| POST | /user-state/document-read |
|---|
import 'package:servicestack/servicestack.dart';
class MarkDocumentReadRequest implements IConvertible
{
int? fileId;
MarkDocumentReadRequest({this.fileId});
MarkDocumentReadRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
fileId = json['fileId'];
return this;
}
Map<String, dynamic> toJson() => {
'fileId': fileId
};
getTypeName() => "MarkDocumentReadRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'etc_api.vsmlab.vn', types: <String, TypeInfo> {
'MarkDocumentReadRequest': TypeInfo(TypeOf.Class, create:() => MarkDocumentReadRequest()),
});
Dart MarkDocumentReadRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /user-state/document-read HTTP/1.1
Host: etc-api.vsmlab.vn
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"fileId":0}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length false