Trendsic Platform Service

<back to all web services

ImportTemplateRequest

Requires Authentication
The following routes are available for this service:
GET/v1/import/template/{Type}
import 'package:servicestack/servicestack.dart';

class ImportTemplateRequest implements IConvertible
{
    String? Type;

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

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

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

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

TypeContext _ctx = TypeContext(library: 'api.dev.dynamics.trendsic.com', types: <String, TypeInfo> {
    'ImportTemplateRequest': TypeInfo(TypeOf.Class, create:() => ImportTemplateRequest()),
});

Dart ImportTemplateRequest 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.

GET /v1/import/template/{Type} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv
HTTP/1.1 200 OK
Content-Type: text/csv
Content-Length: length

(string)