| GET, POST | /cl_multi_photo/{id_operateur}/{id_tournee} |
|---|
import 'package:servicestack/servicestack.dart';
class _multi_photo implements IConvertible
{
String? id_operateur;
String? id_tournee;
String? id_client;
String? num_facture;
int? type;
int? index;
String? path;
String? photo;
String? photo_light;
String? date;
double? latitude;
double? longitude;
_multi_photo({this.id_operateur,this.id_tournee,this.id_client,this.num_facture,this.type,this.index,this.path,this.photo,this.photo_light,this.date,this.latitude,this.longitude});
_multi_photo.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
id_client = json['id_client'];
num_facture = json['num_facture'];
type = json['type'];
index = json['index'];
path = json['path'];
photo = json['photo'];
photo_light = json['photo_light'];
date = json['date'];
latitude = JsonConverters.toDouble(json['latitude']);
longitude = JsonConverters.toDouble(json['longitude']);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'id_client': id_client,
'num_facture': num_facture,
'type': type,
'index': index,
'path': path,
'photo': photo,
'photo_light': photo_light,
'date': date,
'latitude': latitude,
'longitude': longitude
};
getTypeName() => "_multi_photo";
TypeContext? context = _ctx;
}
class cl_multi_photoResponse implements IConvertible
{
String? id_operateur;
String? id_tournee;
List<_multi_photo>? multi_photos;
cl_multi_photoResponse({this.id_operateur,this.id_tournee,this.multi_photos});
cl_multi_photoResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
multi_photos = JsonConverters.fromJson(json['multi_photos'],'List<_multi_photo>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'multi_photos': JsonConverters.toJson(multi_photos,'List<_multi_photo>',context!)
};
getTypeName() => "cl_multi_photoResponse";
TypeContext? context = _ctx;
}
class cl_multi_photoRequest implements IConvertible
{
String? id_operateur;
String? id_tournee;
List<_multi_photo>? multi_photos;
cl_multi_photoRequest({this.id_operateur,this.id_tournee,this.multi_photos});
cl_multi_photoRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
multi_photos = JsonConverters.fromJson(json['multi_photos'],'List<_multi_photo>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'multi_photos': JsonConverters.toJson(multi_photos,'List<_multi_photo>',context!)
};
getTypeName() => "cl_multi_photoRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'freemotion_staging.milliet.paris', types: <String, TypeInfo> {
'_multi_photo': TypeInfo(TypeOf.Class, create:() => _multi_photo()),
'cl_multi_photoResponse': TypeInfo(TypeOf.Class, create:() => cl_multi_photoResponse()),
'List<_multi_photo>': TypeInfo(TypeOf.Class, create:() => <_multi_photo>[]),
'cl_multi_photoRequest': TypeInfo(TypeOf.Class, create:() => cl_multi_photoRequest()),
});
Dart cl_multi_photoRequest 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
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cl_multi_photo/{id_operateur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","multi_photos":[{"id_operateur":"String","id_tournee":"String","id_client":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","multi_photos":[{"id_operateur":"String","id_tournee":"String","id_client":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}]}