ServiceStack Home (Live)

<back to all web services

OldFiles

The following routes are available for this service:
All Verbs/files/{Path*}
All Verbs/OldFiles
import 'package:servicestack/servicestack.dart';

class OldFiles implements IConvertible
{
    String? path;

    OldFiles({this.path});
    OldFiles.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        path = json['path'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'path': path
    };

    getTypeName() => "OldFiles";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'account.servicestack.net', types: <String, TypeInfo> {
    'OldFiles': TypeInfo(TypeOf.Class, create:() => OldFiles()),
});

Dart OldFiles DTOs

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

HTTP + CSV

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /files/{Path*} HTTP/1.1 
Host: account.servicestack.net 
Accept: text/csv
Content-Type: text/csv
Content-Length: length

{"path":"String"}