CL$WS Host : D5239-staging-cl

<back to all web services

cr_photoRequest

The following routes are available for this service:
GET, POST/cr_photo/{id_cr}/{id_tournee}
import java.math.*;
import java.util.*;
import net.servicestack.client.*;

public class dtos
{

    public static class cr_photoRequest
    {
        public String id_cr = null;
        public String id_tournee = null;
        public ArrayList<_cr_photo> multi_photos = null;
        
        public String getIdCr() { return id_cr; }
        public cr_photoRequest setIdCr(String value) { this.id_cr = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public cr_photoRequest setIdTournee(String value) { this.id_tournee = value; return this; }
        public ArrayList<_cr_photo> getMultiPhotos() { return multi_photos; }
        public cr_photoRequest setMultiPhotos(ArrayList<_cr_photo> value) { this.multi_photos = value; return this; }
    }

    public static class _cr_photo
    {
        public String id_cr = null;
        public String id_tournee = 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 getIdCr() { return id_cr; }
        public _cr_photo setIdCr(String value) { this.id_cr = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public _cr_photo setIdTournee(String value) { this.id_tournee = value; return this; }
        public String getNumFacture() { return num_facture; }
        public _cr_photo setNumFacture(String value) { this.num_facture = value; return this; }
        public Integer getType() { return type; }
        public _cr_photo setType(Integer value) { this.type = value; return this; }
        public Integer getIndex() { return index; }
        public _cr_photo setIndex(Integer value) { this.index = value; return this; }
        public String getPath() { return path; }
        public _cr_photo setPath(String value) { this.path = value; return this; }
        public String getPhoto() { return photo; }
        public _cr_photo setPhoto(String value) { this.photo = value; return this; }
        public String getPhotoLight() { return photo_light; }
        public _cr_photo setPhotoLight(String value) { this.photo_light = value; return this; }
        public String getDate() { return date; }
        public _cr_photo setDate(String value) { this.date = value; return this; }
        public Double getLatitude() { return latitude; }
        public _cr_photo setLatitude(Double value) { this.latitude = value; return this; }
        public Double getLongitude() { return longitude; }
        public _cr_photo setLongitude(Double value) { this.longitude = value; return this; }
    }

    public static class cr_photoResponse
    {
        public String id_cr = null;
        public String id_tournee = null;
        public ArrayList<_cr_photo> multi_photos = null;
        
        public String getIdCr() { return id_cr; }
        public cr_photoResponse setIdCr(String value) { this.id_cr = value; return this; }
        public String getIdTournee() { return id_tournee; }
        public cr_photoResponse setIdTournee(String value) { this.id_tournee = value; return this; }
        public ArrayList<_cr_photo> getMultiPhotos() { return multi_photos; }
        public cr_photoResponse setMultiPhotos(ArrayList<_cr_photo> value) { this.multi_photos = value; return this; }
    }

}

Java cr_photoRequest DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /cr_photo/{id_cr}/{id_tournee} HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id_cr":"String","id_tournee":"String","multi_photos":[{"id_cr":"String","id_tournee":"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: text/jsonl
Content-Length: length

{"id_cr":"String","id_tournee":"String","multi_photos":[{"id_cr":"String","id_tournee":"String","num_facture":"String","type":0,"index":0,"path":"String","photo":"String","photo_light":"String","date":"String","latitude":0,"longitude":0}]}