CL$WS Host : D5239-staging-cl

<back to all web services

cl_freemotion_imageRequest

The following routes are available for this service:
GET/freemotion_images
GET/cl_freemotion_images
import 'package:servicestack/servicestack.dart';

class _cl_freemotion_image implements IConvertible
{
    String? id_tournee;
    String? id_operateur;
    String? id_client;
    String? num_facture;
    int? type;
    int? index;
    String? filename;
    String? image_b64;

    _cl_freemotion_image({this.id_tournee,this.id_operateur,this.id_client,this.num_facture,this.type,this.index,this.filename,this.image_b64});
    _cl_freemotion_image.fromJson(Map<String, dynamic> json) { fromMap(json); }

    fromMap(Map<String, dynamic> json) {
        id_tournee = json['id_tournee'];
        id_operateur = json['id_operateur'];
        id_client = json['id_client'];
        num_facture = json['num_facture'];
        type = json['type'];
        index = json['index'];
        filename = json['filename'];
        image_b64 = json['image_b64'];
        return this;
    }

    Map<String, dynamic> toJson() => {
        'id_tournee': id_tournee,
        'id_operateur': id_operateur,
        'id_client': id_client,
        'num_facture': num_facture,
        'type': type,
        'index': index,
        'filename': filename,
        'image_b64': image_b64
    };

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

class cl_freemotion_imageResponse implements IConvertible
{
    List<_cl_freemotion_image>? images;

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

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

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

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

class cl_freemotion_imageRequest implements IConvertible
{
    cl_freemotion_imageRequest();
    cl_freemotion_imageRequest.fromJson(Map<String, dynamic> json) : super();
    fromMap(Map<String, dynamic> json) {
        return this;
    }

    Map<String, dynamic> toJson() => {};
    getTypeName() => "cl_freemotion_imageRequest";
    TypeContext? context = _ctx;
}

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

Dart cl_freemotion_imageRequest 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.

GET /freemotion_images HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: application/json
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"images":[{"id_tournee":"String","id_operateur":"String","id_client":"String","num_facture":"String","type":0,"index":0,"filename":"String","image_b64":"String"}]}