GET | /Gravatar | ||
---|---|---|---|
GET | /Gravatar/{Id} |
import 'package:servicestack/servicestack.dart';
class Gravatar implements IConvertible
{
String? id;
int? size;
Gravatar({this.id,this.size});
Gravatar.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
size = json['size'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'size': size
};
getTypeName() => "Gravatar";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'account.servicestack.net', types: <String, TypeInfo> {
'Gravatar': TypeInfo(TypeOf.Class, create:() => Gravatar()),
});
To override the Content-type in your clients, use the HTTP Accept Header, append the .jsv suffix or ?format=jsv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /Gravatar HTTP/1.1 Host: account.servicestack.net Accept: text/jsv