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 Foundation
import ServiceStack

public class cr_photoRequest : Codable
{
    public var id_cr:String
    public var id_tournee:String
    public var multi_photos:[_cr_photo] = []

    required public init(){}
}

public class _cr_photo : Codable
{
    public var id_cr:String
    public var id_tournee:String
    public var num_facture:String
    public var type:Int
    public var index:Int
    public var path:String
    public var photo:String
    public var photo_light:String
    public var date:String
    public var latitude:Double
    public var longitude:Double

    required public init(){}
}

public class cr_photoResponse : Codable
{
    public var id_cr:String
    public var id_tournee:String
    public var multi_photos:[_cr_photo] = []

    required public init(){}
}


Swift 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}]}