CL$WS Host : D5239-staging-cl

<back to all web services

cl_json_logRequest

The following routes are available for this service:
GET, POST/cl_json_log/{id_operateur}
import 'package:servicestack/servicestack.dart';

class cl_json_logResponse implements IConvertible
{
    String? id_operateur;

    cl_json_logResponse({this.id_operateur});
    cl_json_logResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id_operateur = json['id_operateur'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id_operateur': id_operateur
    };

    getTypeName() => "cl_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 cl_json_logRequest implements IConvertible
{
    String? id_operateur;
    List<_json_log>? logs;

    cl_json_logRequest({this.id_operateur,this.logs});
    cl_json_logRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id_operateur = json['id_operateur'];
        logs = JsonConverters.fromJson(json['logs'],'List<_json_log>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id_operateur': id_operateur,
        'logs': JsonConverters.toJson(logs,'List<_json_log>',context!)
    };

    getTypeName() => "cl_json_logRequest";
    TypeContext? context = _ctx;
}

TypeContext _ctx = TypeContext(library: 'freemotion_staging.milliet.paris', types: <String, TypeInfo> {
    'cl_json_logResponse': TypeInfo(TypeOf.Class, create:() => cl_json_logResponse()),
    '_json_log': TypeInfo(TypeOf.Class, create:() => _json_log()),
    'cl_json_logRequest': TypeInfo(TypeOf.Class, create:() => cl_json_logRequest()),
    'List<_json_log>': TypeInfo(TypeOf.Class, create:() => <_json_log>[]),
});

Dart cl_json_logRequest 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

HTTP + JSON

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /cl_json_log/{id_operateur} HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id_operateur":"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: application/json
Content-Length: length

{"id_operateur":"String"}