CL$WS Host : D5239-staging-cl

<back to all web services

cl_json_logRequest

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

public class cl_json_logRequest : Codable
{
    public var id_operateur:String
    public var logs:[_json_log] = []

    required public init(){}
}

public class _json_log : Codable
{
    public var id_controleur:String
    public var guid:String
    public var id_operateur:String
    public var type:String
    public var date_log:String
    public var date:String
    public var log:String

    required public init(){}
}

public class cl_json_logResponse : Codable
{
    public var id_operateur:String

    required public init(){}
}


Swift cl_json_logRequest 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 /cl_json_log/{id_operateur} HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"id_operateur":"String","logs":[{"id_controleur":"String","guid":"String","id_operateur":"String","type":"String","date_log":"String","date":"String","log":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"id_operateur":"String"}