CL$WS Host : D5239-staging-cl

<back to all web services

cr_tournee_statutRequest

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

class _cr_tournee_statut implements IConvertible
{
    String? id_controleur;
    String? id_tournee;
    String? id_operateur;
    int? statut;
    String? date;

    _cr_tournee_statut({this.id_controleur,this.id_tournee,this.id_operateur,this.statut,this.date});
    _cr_tournee_statut.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class cr_tournee_statutResponse implements IConvertible
{
    String? id_controleur;
    String? id_tournee;
    List<_cr_tournee_statut>? cr_tournee_statuts;

    cr_tournee_statutResponse({this.id_controleur,this.id_tournee,this.cr_tournee_statuts});
    cr_tournee_statutResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id_controleur = json['id_controleur'];
        id_tournee = json['id_tournee'];
        cr_tournee_statuts = JsonConverters.fromJson(json['cr_tournee_statuts'],'List<_cr_tournee_statut>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id_controleur': id_controleur,
        'id_tournee': id_tournee,
        'cr_tournee_statuts': JsonConverters.toJson(cr_tournee_statuts,'List<_cr_tournee_statut>',context!)
    };

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

class cr_tournee_statutRequest implements IConvertible
{
    String? id_controleur;
    String? id_tournee;
    List<_cr_tournee_statut>? cr_tournee_statuts;

    cr_tournee_statutRequest({this.id_controleur,this.id_tournee,this.cr_tournee_statuts});
    cr_tournee_statutRequest.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id_controleur = json['id_controleur'];
        id_tournee = json['id_tournee'];
        cr_tournee_statuts = JsonConverters.fromJson(json['cr_tournee_statuts'],'List<_cr_tournee_statut>',context!);
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id_controleur': id_controleur,
        'id_tournee': id_tournee,
        'cr_tournee_statuts': JsonConverters.toJson(cr_tournee_statuts,'List<_cr_tournee_statut>',context!)
    };

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

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

Dart cr_tournee_statutRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

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

POST /cr_tournee_statut/{id_controleur}/{id_tournee} HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id_controleur":"String","id_tournee":"String","cr_tournee_statuts":[{"id_controleur":"String","id_tournee":"String","id_operateur":"String","statut":0,"date":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id_controleur":"String","id_tournee":"String","cr_tournee_statuts":[{"id_controleur":"String","id_tournee":"String","id_operateur":"String","statut":0,"date":"String"}]}