| GET, POST | /cl_info_tournee/{id_operateur}/{id_tournee} |
|---|
import 'package:servicestack/servicestack.dart';
class _info_tournee implements IConvertible
{
String? id_operateur;
String? id_tournee;
String? date;
double? latitude;
double? longitude;
int? aptitude;
String? id_fin_tournee;
String? kilometrage_depart;
int? carburant_correct;
int? ad_blue_allume;
String? platform;
String? brand;
String? model;
String? release;
String? sdk;
String? app_version;
_info_tournee({this.id_operateur,this.id_tournee,this.date,this.latitude,this.longitude,this.aptitude,this.id_fin_tournee,this.kilometrage_depart,this.carburant_correct,this.ad_blue_allume,this.platform,this.brand,this.model,this.release,this.sdk,this.app_version});
_info_tournee.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
date = json['date'];
latitude = JsonConverters.toDouble(json['latitude']);
longitude = JsonConverters.toDouble(json['longitude']);
aptitude = json['aptitude'];
id_fin_tournee = json['id_fin_tournee'];
kilometrage_depart = json['kilometrage_depart'];
carburant_correct = json['carburant_correct'];
ad_blue_allume = json['ad_blue_allume'];
platform = json['platform'];
brand = json['brand'];
model = json['model'];
release = json['release'];
sdk = json['sdk'];
app_version = json['app_version'];
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'date': date,
'latitude': latitude,
'longitude': longitude,
'aptitude': aptitude,
'id_fin_tournee': id_fin_tournee,
'kilometrage_depart': kilometrage_depart,
'carburant_correct': carburant_correct,
'ad_blue_allume': ad_blue_allume,
'platform': platform,
'brand': brand,
'model': model,
'release': release,
'sdk': sdk,
'app_version': app_version
};
getTypeName() => "_info_tournee";
TypeContext? context = _ctx;
}
class cl_info_tourneeResponse implements IConvertible
{
String? id_operateur;
String? id_tournee;
List<_info_tournee>? infos_tournees;
cl_info_tourneeResponse({this.id_operateur,this.id_tournee,this.infos_tournees});
cl_info_tourneeResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
infos_tournees = JsonConverters.fromJson(json['infos_tournees'],'List<_info_tournee>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'infos_tournees': JsonConverters.toJson(infos_tournees,'List<_info_tournee>',context!)
};
getTypeName() => "cl_info_tourneeResponse";
TypeContext? context = _ctx;
}
class cl_info_tourneeRequest implements IConvertible
{
String? id_operateur;
String? id_tournee;
List<_info_tournee>? infos_tournees;
cl_info_tourneeRequest({this.id_operateur,this.id_tournee,this.infos_tournees});
cl_info_tourneeRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
infos_tournees = JsonConverters.fromJson(json['infos_tournees'],'List<_info_tournee>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'infos_tournees': JsonConverters.toJson(infos_tournees,'List<_info_tournee>',context!)
};
getTypeName() => "cl_info_tourneeRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'freemotion_staging.milliet.paris', types: <String, TypeInfo> {
'_info_tournee': TypeInfo(TypeOf.Class, create:() => _info_tournee()),
'cl_info_tourneeResponse': TypeInfo(TypeOf.Class, create:() => cl_info_tourneeResponse()),
'List<_info_tournee>': TypeInfo(TypeOf.Class, create:() => <_info_tournee>[]),
'cl_info_tourneeRequest': TypeInfo(TypeOf.Class, create:() => cl_info_tourneeRequest()),
});
Dart cl_info_tourneeRequest 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 /cl_info_tournee/{id_operateur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id_operateur":"String","id_tournee":"String","infos_tournees":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"aptitude":0,"id_fin_tournee":"String","kilometrage_depart":"String","carburant_correct":0,"ad_blue_allume":0,"platform":"String","brand":"String","model":"String","release":"String","sdk":"String","app_version":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id_operateur":"String","id_tournee":"String","infos_tournees":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"aptitude":0,"id_fin_tournee":"String","kilometrage_depart":"String","carburant_correct":0,"ad_blue_allume":0,"platform":"String","brand":"String","model":"String","release":"String","sdk":"String","app_version":"String"}]}