| GET, POST | /cr_materiel/{id_controleur}/{id_tournee} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class cr_materielRequest
{
public String id_controleur = null;
public String id_tournee = null;
public ArrayList<_cr_materiel> cr_materiels = null;
public String getIdControleur() { return id_controleur; }
public cr_materielRequest setIdControleur(String value) { this.id_controleur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cr_materielRequest setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_cr_materiel> getCrMateriels() { return cr_materiels; }
public cr_materielRequest setCrMateriels(ArrayList<_cr_materiel> value) { this.cr_materiels = value; return this; }
}
public static class _cr_materiel
{
public String id_controleur = null;
public String id_tournee = null;
public String id_materiel = null;
public Integer depart = null;
public String type_materiel = null;
public Integer quantite_depart = null;
public Integer quantite = null;
public String date = null;
public String getIdControleur() { return id_controleur; }
public _cr_materiel setIdControleur(String value) { this.id_controleur = value; return this; }
public String getIdTournee() { return id_tournee; }
public _cr_materiel setIdTournee(String value) { this.id_tournee = value; return this; }
public String getIdMateriel() { return id_materiel; }
public _cr_materiel setIdMateriel(String value) { this.id_materiel = value; return this; }
public Integer getDepart() { return depart; }
public _cr_materiel setDepart(Integer value) { this.depart = value; return this; }
public String getTypeMateriel() { return type_materiel; }
public _cr_materiel setTypeMateriel(String value) { this.type_materiel = value; return this; }
public Integer getQuantiteDepart() { return quantite_depart; }
public _cr_materiel setQuantiteDepart(Integer value) { this.quantite_depart = value; return this; }
public Integer getQuantite() { return quantite; }
public _cr_materiel setQuantite(Integer value) { this.quantite = value; return this; }
public String getDate() { return date; }
public _cr_materiel setDate(String value) { this.date = value; return this; }
}
public static class cr_materielResponse
{
public String id_controleur = null;
public String id_tournee = null;
public ArrayList<_cr_materiel> cr_materiels = null;
public String getIdControleur() { return id_controleur; }
public cr_materielResponse setIdControleur(String value) { this.id_controleur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cr_materielResponse setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_cr_materiel> getCrMateriels() { return cr_materiels; }
public cr_materielResponse setCrMateriels(ArrayList<_cr_materiel> value) { this.cr_materiels = value; return this; }
}
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=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"}]}