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}
using System;
using System.Collections;
using System.Collections.Generic;
using System.Runtime.Serialization;
using ServiceStack;
using ServiceStack.DataAnnotations;
using CL_WS;

namespace CL_WS
{
    public partial class _cr_photo
    {
        public virtual string id_cr { get; set; }
        public virtual string id_tournee { get; set; }
        public virtual string num_facture { get; set; }
        public virtual int type { get; set; }
        public virtual int index { get; set; }
        public virtual string path { get; set; }
        public virtual string photo { get; set; }
        public virtual string photo_light { get; set; }
        public virtual string date { get; set; }
        public virtual double latitude { get; set; }
        public virtual double longitude { get; set; }
    }

    public partial class cr_photoRequest
    {
        public cr_photoRequest()
        {
            multi_photos = new List<_cr_photo>{};
        }

        public virtual string id_cr { get; set; }
        public virtual string id_tournee { get; set; }
        public virtual List<_cr_photo> multi_photos { get; set; }
    }

    public partial class cr_photoResponse
    {
        public cr_photoResponse()
        {
            multi_photos = new List<_cr_photo>{};
        }

        public virtual string id_cr { get; set; }
        public virtual string id_tournee { get; set; }
        public virtual List<_cr_photo> multi_photos { get; set; }
    }

}

C# cr_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

HTTP + JSON

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: application/json
Content-Type: application/json
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: application/json
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}]}