CL$WS Host : D5239-staging-cl

<back to all web services

cr_videRequest

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

class _cr_vide implements IConvertible
{
    String? id_controleur;
    String? id_tournee;
    String? id_deconsigne;
    int? quantite;
    String? date;

    _cr_vide({this.id_controleur,this.id_tournee,this.id_deconsigne,this.quantite,this.date});
    _cr_vide.fromJson(Map<String, dynamic> json) { fromMap(json); }

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

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

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

class cr_videResponse implements IConvertible
{
    String? id_controleur;
    String? id_tournee;
    List<_cr_vide>? cr_vides;

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

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

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

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

class cr_videRequest implements IConvertible
{
    String? id_controleur;
    String? id_tournee;
    List<_cr_vide>? cr_vides;

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

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

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

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

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

Dart cr_videRequest 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_vide/{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_vides":[{"id_controleur":"String","id_tournee":"String","id_deconsigne":"String","quantite":0,"date":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id_controleur":"String","id_tournee":"String","cr_vides":[{"id_controleur":"String","id_tournee":"String","id_deconsigne":"String","quantite":0,"date":"String"}]}