GET | /api/printers |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class GetPrinters implements IConvertible
{
GetPrinters();
GetPrinters.fromJson(Map<String, dynamic> json) : super();
fromMap(Map<String, dynamic> json) {
return this;
}
Map<String, dynamic> toJson() => {};
getTypeName() => "GetPrinters";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'digiofficeapigateway.deltares.nl', types: <String, TypeInfo> {
'GetPrinters': TypeInfo(TypeOf.Class, create:() => GetPrinters()),
});
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 /api/printers HTTP/1.1 Host: digiofficeapigateway.deltares.nl Accept: text/csv
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length [{"ID":0,"Description":"String","InternalCompanyID":0,"BinLogo":0,"BinBlank":0,"BinFollow":0,"BinExtra":0,"BinLabel":0}]