| GET, POST | /cl_reprise/{id_operateur}/{id_tournee} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class cl_repriseRequest
{
public String id_operateur = null;
public String id_tournee = null;
public ArrayList<_reprise> reprises = null;
public String getIdOperateur() { return id_operateur; }
public cl_repriseRequest setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cl_repriseRequest setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_reprise> getReprises() { return reprises; }
public cl_repriseRequest setReprises(ArrayList<_reprise> value) { this.reprises = value; return this; }
}
public static class _reprise
{
public String id_operateur = null;
public String id_tournee = null;
public String num_facture = null;
public String type_reprise = 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 Double qte_uv = null;
public Double qte_uc = null;
public Double cdt_uc = null;
public String getIdOperateur() { return id_operateur; }
public _reprise setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public _reprise setIdTournee(String value) { this.id_tournee = value; return this; }
public String getNumFacture() { return num_facture; }
public _reprise setNumFacture(String value) { this.num_facture = value; return this; }
public String getTypeReprise() { return type_reprise; }
public _reprise setTypeReprise(String value) { this.type_reprise = value; return this; }
public String getArticleId() { return article_id; }
public _reprise setArticleId(String value) { this.article_id = value; return this; }
public Integer getArticleAbsent() { return article_absent; }
public _reprise setArticleAbsent(Integer value) { this.article_absent = value; return this; }
public Integer getQuantite() { return quantite; }
public _reprise setQuantite(Integer value) { this.quantite = value; return this; }
public Integer getReintegrable() { return reintegrable; }
public _reprise setReintegrable(Integer value) { this.reintegrable = value; return this; }
public String getCommentaire() { return commentaire; }
public _reprise setCommentaire(String value) { this.commentaire = value; return this; }
public String getDate() { return date; }
public _reprise setDate(String value) { this.date = value; return this; }
public Double getQteUv() { return qte_uv; }
public _reprise setQteUv(Double value) { this.qte_uv = value; return this; }
public Double getQteUc() { return qte_uc; }
public _reprise setQteUc(Double value) { this.qte_uc = value; return this; }
public Double getCdtUc() { return cdt_uc; }
public _reprise setCdtUc(Double value) { this.cdt_uc = value; return this; }
}
public static class cl_repriseResponse
{
public String id_operateur = null;
public String id_tournee = null;
public ArrayList<_reprise> reprises = null;
public String getIdOperateur() { return id_operateur; }
public cl_repriseResponse setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cl_repriseResponse setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_reprise> getReprises() { return reprises; }
public cl_repriseResponse setReprises(ArrayList<_reprise> value) { this.reprises = 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 /cl_reprise/{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","reprises":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","type_reprise":"String","article_id":"String","article_absent":0,"quantite":0,"reintegrable":0,"commentaire":"String","date":"String","qte_uv":0,"qte_uc":0,"cdt_uc":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","reprises":[{"id_operateur":"String","id_tournee":"String","num_facture":"String","type_reprise":"String","article_id":"String","article_absent":0,"quantite":0,"reintegrable":0,"commentaire":"String","date":"String","qte_uv":0,"qte_uc":0,"cdt_uc":0}]}