| GET, POST | /cr_json_log/{id_controleur} |
|---|
import 'package:servicestack/servicestack.dart';
class cr_json_logResponse implements IConvertible
{
String? id_controleur;
cr_json_logResponse({this.id_controleur});
cr_json_logResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_controleur = json['id_controleur'];
return this;
}
Map<String, dynamic> toJson() => {
'id_controleur': id_controleur
};
getTypeName() => "cr_json_logResponse";
TypeContext? context = _ctx;
}
class _json_log implements IConvertible
{
String? id_controleur;
String? guid;
String? id_operateur;
String? type;
String? date_log;
String? date;
String? log;
_json_log({this.id_controleur,this.guid,this.id_operateur,this.type,this.date_log,this.date,this.log});
_json_log.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_controleur = json['id_controleur'];
guid = json['guid'];
id_operateur = json['id_operateur'];
type = json['type'];
date_log = json['date_log'];
date = json['date'];
log = json['log'];
return this;
}
Map<String, dynamic> toJson() => {
'id_controleur': id_controleur,
'guid': guid,
'id_operateur': id_operateur,
'type': type,
'date_log': date_log,
'date': date,
'log': log
};
getTypeName() => "_json_log";
TypeContext? context = _ctx;
}
class cr_json_logRequest implements IConvertible
{
String? id_controleur;
List<_json_log>? logs;
cr_json_logRequest({this.id_controleur,this.logs});
cr_json_logRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id_controleur = json['id_controleur'];
logs = JsonConverters.fromJson(json['logs'],'List<_json_log>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id_controleur': id_controleur,
'logs': JsonConverters.toJson(logs,'List<_json_log>',context!)
};
getTypeName() => "cr_json_logRequest";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'freemotion_staging.milliet.paris', types: <String, TypeInfo> {
'cr_json_logResponse': TypeInfo(TypeOf.Class, create:() => cr_json_logResponse()),
'_json_log': TypeInfo(TypeOf.Class, create:() => _json_log()),
'cr_json_logRequest': TypeInfo(TypeOf.Class, create:() => cr_json_logRequest()),
'List<_json_log>': TypeInfo(TypeOf.Class, create:() => <_json_log>[]),
});
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 /cr_json_log/{id_controleur} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id_controleur":"String","logs":[{"id_controleur":"String","guid":"String","id_operateur":"String","type":"String","date_log":"String","date":"String","log":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id_controleur":"String"}