| All Verbs | /cmd/branding/upload |
|---|
import 'package:servicestack/servicestack.dart';
class FileUploadRequest implements IConvertible
{
String? directoryName;
String? fileName;
FileUploadRequest({this.directoryName,this.fileName});
FileUploadRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
directoryName = json['directoryName'];
fileName = json['fileName'];
return this;
}
Map<String, dynamic> toJson() => {
'directoryName': directoryName,
'fileName': fileName
};
getTypeName() => "FileUploadRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'api.sbbet.ath.cx', types: <String, TypeInfo> {
'FileUploadRequest': TypeInfo(TypeOf.Class, create:() => FileUploadRequest()),
});
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 /cmd/branding/upload HTTP/1.1
Host: api.sbbet.ath.cx
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"directoryName":"String","fileName":"String"}