Trendsic Platform Service

<back to all web services

PortalPhotoRequest

The following routes are available for this service:
GET,OPTIONS/portal/{Token}/photo/{AttachmentId}
import 'package:servicestack/servicestack.dart';

class PortalPhotoRequest implements IConvertible
{
    String? Token;
    int? AttachmentId;

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

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

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

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

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

Dart PortalPhotoRequest 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 /portal/{Token}/photo/{AttachmentId} HTTP/1.1 
Host: api.dev.dynamics.trendsic.com 
Accept: application/json