| GET, POST | /cr_casse/{id_controleur}/{id_tournee} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class cr_casseRequest
{
public String id_controleur = null;
public String id_tournee = null;
public ArrayList<_cr_retour> cr_casses = null;
public String getIdControleur() { return id_controleur; }
public cr_casseRequest setIdControleur(String value) { this.id_controleur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cr_casseRequest setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_cr_retour> getCrCasses() { return cr_casses; }
public cr_casseRequest setCrCasses(ArrayList<_cr_retour> value) { this.cr_casses = value; return this; }
}
public static class _cr_retour
{
public String id_controleur = null;
public String id_tournee = null;
public String num_facture = null;
public String type_retour = null;
public String article_id = null;
public Integer article_absent = null;
public Integer quantite = null;
public Integer reintegrable = null;
public String commentaire = null;
public String date = null;
public String qte_uv = null;
public String qte_uc = null;
public String cdt_uc = null;
public Double _qte_uv = null;
public Double _qte_uc = null;
public Double _cdt_uc = null;
public String getIdControleur() { return id_controleur; }
public _cr_retour setIdControleur(String value) { this.id_controleur = value; return this; }
public String getIdTournee() { return id_tournee; }
public _cr_retour setIdTournee(String value) { this.id_tournee = value; return this; }
public String getNumFacture() { return num_facture; }
public _cr_retour setNumFacture(String value) { this.num_facture = value; return this; }
public String getTypeRetour() { return type_retour; }
public _cr_retour setTypeRetour(String value) { this.type_retour = value; return this; }
public String getArticleId() { return article_id; }
public _cr_retour setArticleId(String value) { this.article_id = value; return this; }
public Integer getArticleAbsent() { return article_absent; }
public _cr_retour setArticleAbsent(Integer value) { this.article_absent = value; return this; }
public Integer getQuantite() { return quantite; }
public _cr_retour setQuantite(Integer value) { this.quantite = value; return this; }
public Integer getReintegrable() { return reintegrable; }
public _cr_retour setReintegrable(Integer value) { this.reintegrable = value; return this; }
public String getCommentaire() { return commentaire; }
public _cr_retour setCommentaire(String value) { this.commentaire = value; return this; }
public String getDate() { return date; }
public _cr_retour setDate(String value) { this.date = value; return this; }
public String getQteUv() { return qte_uv; }
public _cr_retour setQteUv(String value) { this.qte_uv = value; return this; }
public String getQteUc() { return qte_uc; }
public _cr_retour setQteUc(String value) { this.qte_uc = value; return this; }
public String getCdtUc() { return cdt_uc; }
public _cr_retour setCdtUc(String value) { this.cdt_uc = value; return this; }
public Double getQteUv() { return _qte_uv; }
public _cr_retour setQteUv(Double value) { this._qte_uv = value; return this; }
public Double getQteUc() { return _qte_uc; }
public _cr_retour setQteUc(Double value) { this._qte_uc = value; return this; }
public Double getCdtUc() { return _cdt_uc; }
public _cr_retour setCdtUc(Double value) { this._cdt_uc = value; return this; }
}
public static class cr_casseResponse
{
public String id_controleur = null;
public String id_tournee = null;
public ArrayList<_cr_retour> cr_casses = null;
public String getIdControleur() { return id_controleur; }
public cr_casseResponse setIdControleur(String value) { this.id_controleur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cr_casseResponse setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_cr_retour> getCrCasses() { return cr_casses; }
public cr_casseResponse setCrCasses(ArrayList<_cr_retour> value) { this.cr_casses = value; return this; }
}
}
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_casse/{id_controleur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: application/json
Content-Type: application/json
Content-Length: length
{"id_controleur":"String","id_tournee":"String","cr_casses":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","type_retour":"String","article_id":"String","article_absent":0,"quantite":0,"reintegrable":0,"commentaire":"String","date":"String","qte_uv":"String","qte_uc":"String","cdt_uc":"String"}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id_controleur":"String","id_tournee":"String","cr_casses":[{"id_controleur":"String","id_tournee":"String","num_facture":"String","type_retour":"String","article_id":"String","article_absent":0,"quantite":0,"reintegrable":0,"commentaire":"String","date":"String","qte_uv":"String","qte_uc":"String","cdt_uc":"String"}]}