| GET | /api/documents/{DocID}/documentinfo |
|---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
/**
* Download DocumentInfoXml.
*/
// @Api(Description="Download DocumentInfoXml.")
class GetDocumentInfoOperation implements IConvertible
{
/**
* ID of the Document Registration
*/
// @ApiMember(Description="ID of the Document Registration", IsRequired=true)
String? DocID;
GetDocumentInfoOperation({this.DocID});
GetDocumentInfoOperation.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
DocID = json['DocID'];
return this;
}
Map<String, dynamic> toJson() => {
'DocID': DocID
};
getTypeName() => "GetDocumentInfoOperation";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'test_do_services.klokgroep.nl', types: <String, TypeInfo> {
'GetDocumentInfoOperation': TypeInfo(TypeOf.Class, create:() => GetDocumentInfoOperation()),
});
Dart GetDocumentInfoOperation 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/documents/{DocID}/documentinfo HTTP/1.1
Host: test-do-services.klokgroep.nl
Accept: application/xml
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length (byte[])