CL$WS Host : D5239-staging-cl

<back to all web services

query_inter_livraisons

Requires Authentication
The following routes are available for this service:
All Verbs/query/inter_livraisons
import Foundation
import ServiceStack

public class query_inter_livraisons : SecuredQueryDb<inter_livraisons>
{
    public var tourneesId:String

    required public init(){ super.init() }

    private enum CodingKeys : String, CodingKey {
        case tourneesId
    }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
        let container = try decoder.container(keyedBy: CodingKeys.self)
        tourneesId = try container.decodeIfPresent(String.self, forKey: .tourneesId)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
        var container = encoder.container(keyedBy: CodingKeys.self)
        if tourneesId != nil { try container.encode(tourneesId, forKey: .tourneesId) }
    }
}

public class SecuredQueryDb<T : Codable> : QueryDb<T>
{
    required public init(){ super.init() }

    required public init(from decoder: Decoder) throws {
        try super.init(from: decoder)
    }

    public override func encode(to encoder: Encoder) throws {
        try super.encode(to: encoder)
    }
}

public class inter_livraisons : Codable
{
    public var id_operateur:String
    public var id_tournee:String
    public var date:String
    public var latitude:Double
    public var longitude:Double
    public var id_client_termine:String
    public var satisfaction:Int
    public var id_client_suivant:String
    public var signature:String

    required public init(){}
}

public class tournees : Codable
{
    public var id_operateur:String
    public var id_tournee:String
    public var libelle:String

    required public init(){}
}


Swift query_inter_livraisons 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 /query/inter_livraisons HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"tourneesId":"String","skip":0,"take":0,"orderBy":"String","orderByDesc":"String","include":"String","fields":"String","meta":{"String":"String"}}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"offset":0,"total":0,"results":[{"id_operateur":"String","id_tournee":"String","date":"String","latitude":0,"longitude":0,"id_client_termine":"String","satisfaction":0,"id_client_suivant":"String","signature":"String"}],"meta":{"String":"String"},"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}