| GET, POST | /cl_ordre_tournee/{id_operateur}/{id_tournee} |
|---|
import 'package:servicestack/servicestack.dart';
class _ordre_tournee implements IConvertible
{
String? id_operateur;
String? id_tournee;
List<String>? factures;
_ordre_tournee({this.id_operateur,this.id_tournee,this.factures});
_ordre_tournee.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
factures = JsonConverters.fromJson(json['factures'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'factures': JsonConverters.toJson(factures,'List<String>',context!)
};
getTypeName() => "_ordre_tournee";
TypeContext? context = _ctx;
}
class cl_ordre_tourneeResponse implements IConvertible
{
String? id_operateur;
String? id_tournee;
List<_ordre_tournee>? ordre_tournees;
cl_ordre_tourneeResponse({this.id_operateur,this.id_tournee,this.ordre_tournees});
cl_ordre_tourneeResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
ordre_tournees = JsonConverters.fromJson(json['ordre_tournees'],'List<_ordre_tournee>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'ordre_tournees': JsonConverters.toJson(ordre_tournees,'List<_ordre_tournee>',context!)
};
getTypeName() => "cl_ordre_tourneeResponse";
TypeContext? context = _ctx;
}
class cl_ordre_tourneeRequest implements IConvertible
{
String? id_operateur;
String? id_tournee;
List<_ordre_tournee>? ordre_tournees;
cl_ordre_tourneeRequest({this.id_operateur,this.id_tournee,this.ordre_tournees});
cl_ordre_tourneeRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_operateur = json['id_operateur'];
id_tournee = json['id_tournee'];
ordre_tournees = JsonConverters.fromJson(json['ordre_tournees'],'List<_ordre_tournee>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_operateur': id_operateur,
'id_tournee': id_tournee,
'ordre_tournees': JsonConverters.toJson(ordre_tournees,'List<_ordre_tournee>',context!)
};
getTypeName() => "cl_ordre_tourneeRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'freemotion_staging.milliet.paris', types: <String, TypeInfo> {
'_ordre_tournee': TypeInfo(TypeOf.Class, create:() => _ordre_tournee()),
'cl_ordre_tourneeResponse': TypeInfo(TypeOf.Class, create:() => cl_ordre_tourneeResponse()),
'List<_ordre_tournee>': TypeInfo(TypeOf.Class, create:() => <_ordre_tournee>[]),
'cl_ordre_tourneeRequest': TypeInfo(TypeOf.Class, create:() => cl_ordre_tourneeRequest()),
});
Dart cl_ordre_tourneeRequest 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_ordre_tournee/{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","ordre_tournees":[{"id_operateur":"String","id_tournee":"String","factures":["String"]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","ordre_tournees":[{"id_operateur":"String","id_tournee":"String","factures":["String"]}]}