CL$WS Host : D5239-staging-cl

<back to all web services

cr_photoRequest

The following routes are available for this service:
GET, POST/cr_photo/{id_cr}/{id_tournee}

export class _cr_photo
{
    public id_cr: string;
    public id_tournee: string;
    public num_facture: string;
    public type: number;
    public index: number;
    public path: string;
    public photo: string;
    public photo_light: string;
    public date: string;
    public latitude: number;
    public longitude: number;

    public constructor(init?: Partial<_cr_photo>) { (Object as any).assign(this, init); }
}

export class cr_photoResponse
{
    public id_cr: string;
    public id_tournee: string;
    public multi_photos: _cr_photo[];

    public constructor(init?: Partial<cr_photoResponse>) { (Object as any).assign(this, init); }
}

export class cr_photoRequest
{
    public id_cr: string;
    public id_tournee: string;
    public multi_photos: _cr_photo[];

    public constructor(init?: Partial<cr_photoRequest>) { (Object as any).assign(this, init); }
}

TypeScript cr_photoRequest 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 /cr_photo/{id_cr}/{id_tournee} HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id_cr":"String","id_tournee":"String","multi_photos":[{"id_cr":"String","id_tournee":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length

{"id_cr":"String","id_tournee":"String","multi_photos":[{"id_cr":"String","id_tournee":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}]}