| GET, POST | /cl_alerte_tournee/{id_operateur}/{id_tournee} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class cl_alerte_tourneeRequest
{
public String id_operateur = null;
public String id_tournee = null;
public ArrayList<_alerte_tournee> alertes_tournees = null;
public String getIdOperateur() { return id_operateur; }
public cl_alerte_tourneeRequest setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cl_alerte_tourneeRequest setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_alerte_tournee> getAlertesTournees() { return alertes_tournees; }
public cl_alerte_tourneeRequest setAlertesTournees(ArrayList<_alerte_tournee> value) { this.alertes_tournees = value; return this; }
}
public static class _alerte_tournee
{
public String id_operateur = null;
public String id_tournee = null;
public String id_evenement = null;
public String date = null;
public Double latitude = null;
public Double longitude = null;
public Double duree = null;
public ArrayList<_alerte_tournee_ligne> factures_non_livrees = null;
public String getIdOperateur() { return id_operateur; }
public _alerte_tournee setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public _alerte_tournee setIdTournee(String value) { this.id_tournee = value; return this; }
public String getIdEvenement() { return id_evenement; }
public _alerte_tournee setIdEvenement(String value) { this.id_evenement = value; return this; }
public String getDate() { return date; }
public _alerte_tournee setDate(String value) { this.date = value; return this; }
public Double getLatitude() { return latitude; }
public _alerte_tournee setLatitude(Double value) { this.latitude = value; return this; }
public Double getLongitude() { return longitude; }
public _alerte_tournee setLongitude(Double value) { this.longitude = value; return this; }
public Double getDuree() { return duree; }
public _alerte_tournee setDuree(Double value) { this.duree = value; return this; }
public ArrayList<_alerte_tournee_ligne> getFacturesNonLivrees() { return factures_non_livrees; }
public _alerte_tournee setFacturesNonLivrees(ArrayList<_alerte_tournee_ligne> value) { this.factures_non_livrees = value; return this; }
}
public static class _alerte_tournee_ligne
{
public String id_operateur = null;
public String id_tournee = null;
public String id_evenement = null;
public String date = null;
public String num_facture = null;
public String getIdOperateur() { return id_operateur; }
public _alerte_tournee_ligne setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public _alerte_tournee_ligne setIdTournee(String value) { this.id_tournee = value; return this; }
public String getIdEvenement() { return id_evenement; }
public _alerte_tournee_ligne setIdEvenement(String value) { this.id_evenement = value; return this; }
public String getDate() { return date; }
public _alerte_tournee_ligne setDate(String value) { this.date = value; return this; }
public String getNumFacture() { return num_facture; }
public _alerte_tournee_ligne setNumFacture(String value) { this.num_facture = value; return this; }
}
public static class cl_alerte_tourneeResponse
{
public String id_operateur = null;
public String id_tournee = null;
public ArrayList<_alerte_tournee> alertes_tournees = null;
public String getIdOperateur() { return id_operateur; }
public cl_alerte_tourneeResponse setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cl_alerte_tourneeResponse setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_alerte_tournee> getAlertesTournees() { return alertes_tournees; }
public cl_alerte_tourneeResponse setAlertesTournees(ArrayList<_alerte_tournee> value) { this.alertes_tournees = value; return this; }
}
}
Java cl_alerte_tourneeRequest 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_alerte_tournee/{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","alertes_tournees":[{"id_operateur":"String","id_tournee":"String","id_evenement":"String","date":"String","latitude":0,"longitude":0,"duree":0,"factures_non_livrees":[{"id_operateur":"String","id_tournee":"String","id_evenement":"String","date":"String","num_facture":"String"}]}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","alertes_tournees":[{"id_operateur":"String","id_tournee":"String","id_evenement":"String","date":"String","latitude":0,"longitude":0,"duree":0,"factures_non_livrees":[{"id_operateur":"String","id_tournee":"String","id_evenement":"String","date":"String","num_facture":"String"}]}]}