| GET, POST | /cr_photo/{id_cr}/{id_tournee} |
|---|
"use strict";
export class _cr_photo {
/** @param {{id_cr?:string,id_tournee?:string,num_facture?:string,type?:number,index?:number,path?:string,photo?:string,photo_light?:string,date?:string,latitude?:number,longitude?:number}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_cr;
/** @type {string} */
id_tournee;
/** @type {string} */
num_facture;
/** @type {number} */
type;
/** @type {number} */
index;
/** @type {string} */
path;
/** @type {string} */
photo;
/** @type {string} */
photo_light;
/** @type {string} */
date;
/** @type {number} */
latitude;
/** @type {number} */
longitude;
}
export class cr_photoResponse {
/** @param {{id_cr?:string,id_tournee?:string,multi_photos?:_cr_photo[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_cr;
/** @type {string} */
id_tournee;
/** @type {_cr_photo[]} */
multi_photos;
}
export class cr_photoRequest {
/** @param {{id_cr?:string,id_tournee?:string,multi_photos?:_cr_photo[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_cr;
/** @type {string} */
id_tournee;
/** @type {_cr_photo[]} */
multi_photos;
}
JavaScript 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
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}]}