Trendsic Platform Service

<back to all web services

AttachmentViewPageRequest

Requires Authentication
The following routes are available for this service:
GET/v1/AttachmentView/{AttachmentId}/page/{Page}
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';

class AttachmentViewPageRequest implements IConvertible
{
    String? AttachmentId;
    int? Page;
    int? Width;

    AttachmentViewPageRequest({this.AttachmentId,this.Page,this.Width});
    AttachmentViewPageRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

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

Dart AttachmentViewPageRequest DTOs

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

To embed the response in a jsonp callback, append ?callback=myCallback

HTTP + JSON

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

GET /v1/AttachmentView/{AttachmentId}/page/{Page} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json