| All Verbs | /DestockQty/{EAN}/{Quantity}/{Owner} |
|---|
import 'package:servicestack/servicestack.dart';
class DestockQty implements IConvertible
{
/**
* EAN
*/
// @ApiMember(Description="EAN", IsRequired=true)
String? EAN;
/**
* Quantity to destock
*/
// @ApiMember(Description="Quantity to destock", IsRequired=true)
int? Quantity;
/**
* Owner
*/
// @ApiMember(Description="Owner", IsRequired=true)
String? Owner;
DestockQty({this.EAN,this.Quantity,this.Owner});
DestockQty.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
EAN = json['EAN'];
Quantity = json['Quantity'];
Owner = json['Owner'];
return this;
}
Map<String, dynamic> toJson() => {
'EAN': EAN,
'Quantity': Quantity,
'Owner': Owner
};
getTypeName() => "DestockQty";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'clouddemo.pickeos.com', types: <String, TypeInfo> {
'DestockQty': TypeInfo(TypeOf.Class, create:() => DestockQty()),
});
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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /DestockQty/{EAN}/{Quantity}/{Owner} HTTP/1.1
Host: clouddemo.pickeos.com
Accept: application/json
Content-Type: application/json
Content-Length: length
{"EAN":"String","Quantity":0,"Owner":"String"}