Trendsic Platform Service

<back to all web services

AttachmentDownloadRequest

The following routes are available for this service:
GET/v1/AttachmentDownload/{AttachmentId}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class AttachmentDownloadRequest implements IConvertible
{
    String? AttachmentId;
    bool? ViewInBrowser;

    AttachmentDownloadRequest({this.AttachmentId,this.ViewInBrowser});
    AttachmentDownloadRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

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

Dart AttachmentDownloadRequest 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/AttachmentDownload/{AttachmentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: text/csv