CL$WS Host : D5239-staging-cl

<back to all web services

cr_materielRequest

The following routes are available for this service:
GET, POST/cr_materiel/{id_controleur}/{id_tournee}
"use strict";
export class _cr_materiel {
    /** @param {{id_controleur?: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_controleur;
    /** @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 cr_materielResponse {
    /** @param {{id_controleur?:string,id_tournee?:string,cr_materiels?:_cr_materiel[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id_controleur;
    /** @type {string} */
    id_tournee;
    /** @type {_cr_materiel[]} */
    cr_materiels;
}
export class cr_materielRequest {
    /** @param {{id_controleur?:string,id_tournee?:string,cr_materiels?:_cr_materiel[]}} [init] */
    constructor(init) { Object.assign(this, init) }
    /** @type {string} */
    id_controleur;
    /** @type {string} */
    id_tournee;
    /** @type {_cr_materiel[]} */
    cr_materiels;
}

JavaScript cr_materielRequest 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_materiel/{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_materiels":[{"id_controleur":"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: text/jsonl
Content-Length: length

{"id_controleur":"String","id_tournee":"String","cr_materiels":[{"id_controleur":"String","id_tournee":"String","id_materiel":"String","depart":0,"type_materiel":"String","quantite_depart":0,"quantite":0,"date":"String"}]}