| GET, POST | /cl_multi_photo/{id_operateur}/{id_tournee} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class cl_multi_photoRequest
{
public String id_operateur = null;
public String id_tournee = null;
public ArrayList<_multi_photo> multi_photos = null;
public String getIdOperateur() { return id_operateur; }
public cl_multi_photoRequest setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cl_multi_photoRequest setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_multi_photo> getMultiPhotos() { return multi_photos; }
public cl_multi_photoRequest setMultiPhotos(ArrayList<_multi_photo> value) { this.multi_photos = value; return this; }
}
public static class _multi_photo
{
public String id_operateur = null;
public String id_tournee = null;
public String id_client = null;
public String num_facture = null;
public Integer type = null;
public Integer index = null;
public String path = null;
public String photo = null;
public String photo_light = null;
public String date = null;
public Double latitude = null;
public Double longitude = null;
public String getIdOperateur() { return id_operateur; }
public _multi_photo setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public _multi_photo setIdTournee(String value) { this.id_tournee = value; return this; }
public String getIdClient() { return id_client; }
public _multi_photo setIdClient(String value) { this.id_client = value; return this; }
public String getNumFacture() { return num_facture; }
public _multi_photo setNumFacture(String value) { this.num_facture = value; return this; }
public Integer getType() { return type; }
public _multi_photo setType(Integer value) { this.type = value; return this; }
public Integer getIndex() { return index; }
public _multi_photo setIndex(Integer value) { this.index = value; return this; }
public String getPath() { return path; }
public _multi_photo setPath(String value) { this.path = value; return this; }
public String getPhoto() { return photo; }
public _multi_photo setPhoto(String value) { this.photo = value; return this; }
public String getPhotoLight() { return photo_light; }
public _multi_photo setPhotoLight(String value) { this.photo_light = value; return this; }
public String getDate() { return date; }
public _multi_photo setDate(String value) { this.date = value; return this; }
public Double getLatitude() { return latitude; }
public _multi_photo setLatitude(Double value) { this.latitude = value; return this; }
public Double getLongitude() { return longitude; }
public _multi_photo setLongitude(Double value) { this.longitude = value; return this; }
}
public static class cl_multi_photoResponse
{
public String id_operateur = null;
public String id_tournee = null;
public ArrayList<_multi_photo> multi_photos = null;
public String getIdOperateur() { return id_operateur; }
public cl_multi_photoResponse setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getIdTournee() { return id_tournee; }
public cl_multi_photoResponse setIdTournee(String value) { this.id_tournee = value; return this; }
public ArrayList<_multi_photo> getMultiPhotos() { return multi_photos; }
public cl_multi_photoResponse setMultiPhotos(ArrayList<_multi_photo> value) { this.multi_photos = value; return this; }
}
}
Java cl_multi_photoRequest 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_multi_photo/{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","multi_photos":[{"id_operateur":"String","id_tournee":"String","id_client":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}]}
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{"id_operateur":"String","id_tournee":"String","multi_photos":[{"id_operateur":"String","id_tournee":"String","id_client":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}]}