All Verbs | /image-redirect |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
import 'dart:collection';
class ImageAsRedirect implements IConvertible
{
String? format;
ImageAsRedirect({this.format});
ImageAsRedirect.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
format = json['format'];
return this;
}
Map<String, dynamic> toJson() => {
'format': format
};
getTypeName() => "ImageAsRedirect";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'test.servicestack.net', types: <String, TypeInfo> {
'ImageAsRedirect': TypeInfo(TypeOf.Class, create:() => ImageAsRedirect()),
});
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 /image-redirect HTTP/1.1
Host: test.servicestack.net
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"format":"String"}