| 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()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
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/xml