| GET, POST | /cl_materiel/{id_operateur}/{id_tournee} |
|---|
"use strict";
export class _materiel {
/** @param {{id_operateur?:string,id_tournee?:string,id_materiel?:string,depart?:number,type_materiel?:string,quantite_depart?:number,quantite?:number,date?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {string} */
id_materiel;
/** @type {number} */
depart;
/** @type {string} */
type_materiel;
/** @type {number} */
quantite_depart;
/** @type {number} */
quantite;
/** @type {string} */
date;
}
export class cl_materielResponse {
/** @param {{id_operateur?:string,id_tournee?:string,materiels?:_materiel[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {_materiel[]} */
materiels;
}
export class cl_materielRequest {
/** @param {{id_operateur?:string,id_tournee?:string,materiels?:_materiel[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {string} */
id_operateur;
/** @type {string} */
id_tournee;
/** @type {_materiel[]} */
materiels;
}
JavaScript cl_materielRequest 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 /cl_materiel/{id_operateur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","materiels":[{"id_operateur":"String","id_tournee":"String","id_materiel":"String","depart":0,"type_materiel":"String","quantite_depart":0,"quantite":0,"date":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","materiels":[{"id_operateur":"String","id_tournee":"String","id_materiel":"String","depart":0,"type_materiel":"String","quantite_depart":0,"quantite":0,"date":"String"}]}