Betting.WebApi

<back to all web services

FileUploadRequest

The following routes are available for this service:
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()),
});

Dart FileUploadRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv

HTTP + JSV

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/jsv
Content-Type: text/jsv
Content-Length: length

{
	directoryName: String,
	fileName: String
}