CL$WS Host : D5239-staging-cl

<back to all web services

cr_controle_camionRequest

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

class _cr_controle_camion implements IConvertible
{
    String? id_controleur;
    String? id_tournee;
    String? id_formulaire;
    String? id_type_formulaire;
    String? id_type_reponse;
    String? value;
    String? date;

    _cr_controle_camion({this.id_controleur,this.id_tournee,this.id_formulaire,this.id_type_formulaire,this.id_type_reponse,this.value,this.date});
    _cr_controle_camion.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id_controleur = json['id_controleur'];
        id_tournee = json['id_tournee'];
        id_formulaire = json['id_formulaire'];
        id_type_formulaire = json['id_type_formulaire'];
        id_type_reponse = json['id_type_reponse'];
        value = json['value'];
        date = json['date'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id_controleur': id_controleur,
        'id_tournee': id_tournee,
        'id_formulaire': id_formulaire,
        'id_type_formulaire': id_type_formulaire,
        'id_type_reponse': id_type_reponse,
        'value': value,
        'date': date
    };

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

class cr_controle_camionResponse implements IConvertible
{
    String? id_controleur;
    String? id_tournee;
    List<_cr_controle_camion>? cr_controles_camion;

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

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

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

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

class cr_controle_camionRequest implements IConvertible
{
    String? id_controleur;
    String? id_tournee;
    List<_cr_controle_camion>? cr_controles_camion;

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

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

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

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

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

Dart cr_controle_camionRequest 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_controle_camion/{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_controles_camion":[{"id_controleur":"String","id_tournee":"String","id_formulaire":"String","id_type_formulaire":"String","id_type_reponse":"String","value":"String","date":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id_controleur":"String","id_tournee":"String","cr_controles_camion":[{"id_controleur":"String","id_tournee":"String","id_formulaire":"String","id_type_formulaire":"String","id_type_reponse":"String","value":"String","date":"String"}]}