Required permission: | PicturePermission |
POST | /directory/image |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
class DirectoryImageRequest implements IConvertible
{
String? directory_uuid;
String? uuid;
bool? large;
bool? medium;
bool? original_size;
bool? ignore_share;
DirectoryImageRequest({this.directory_uuid,this.uuid,this.large,this.medium,this.original_size,this.ignore_share});
DirectoryImageRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
directory_uuid = json['directory_uuid'];
uuid = json['uuid'];
large = json['large'];
medium = json['medium'];
original_size = json['original_size'];
ignore_share = json['ignore_share'];
return this;
}
Map<String, dynamic> toJson() => {
'directory_uuid': directory_uuid,
'uuid': uuid,
'large': large,
'medium': medium,
'original_size': original_size,
'ignore_share': ignore_share
};
getTypeName() => "DirectoryImageRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'data.regent_college.edu', types: <String, TypeInfo> {
'DirectoryImageRequest': TypeInfo(TypeOf.Class, create:() => DirectoryImageRequest()),
});
Dart DirectoryImageRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /directory/image HTTP/1.1
Host: data.regent-college.edu
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"directory_uuid":"String","uuid":"String","large":false,"medium":false,"original_size":false,"ignore_share":false}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length (byte[])