CL$WS Host : D5239-staging-cl

<back to all web services

cl_alerte_tourneeRequest

The following routes are available for this service:
GET, POST/cl_alerte_tournee/{id_operateur}/{id_tournee}
import Foundation
import ServiceStack

public class cl_alerte_tourneeRequest : Codable
{
    public var id_operateur:String
    public var id_tournee:String
    public var alertes_tournees:[_alerte_tournee] = []

    required public init(){}
}

public class _alerte_tournee : Codable
{
    public var id_operateur:String
    public var id_tournee:String
    public var id_evenement:String
    public var date:String
    public var latitude:Double
    public var longitude:Double
    public var duree:Double
    public var factures_non_livrees:[_alerte_tournee_ligne] = []

    required public init(){}
}

public class _alerte_tournee_ligne : Codable
{
    public var id_operateur:String
    public var id_tournee:String
    public var id_evenement:String
    public var date:String
    public var num_facture:String

    required public init(){}
}

public class cl_alerte_tourneeResponse : Codable
{
    public var id_operateur:String
    public var id_tournee:String
    public var alertes_tournees:[_alerte_tournee] = []

    required public init(){}
}


Swift 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

HTTP + JSON

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