CL$WS Host : D5239-staging-cl

<back to all web services

cr_json_logRequest

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

public class cr_json_logRequest : Codable
{
    public var id_controleur: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 cr_json_logResponse : Codable
{
    public var id_controleur:String

    required public init(){}
}


Swift cr_json_logRequest 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_json_log/{id_controleur} HTTP/1.1 
Host: freemotion-staging.milliet.paris 
Accept: application/json
Content-Type: application/json
Content-Length: length

{"id_controleur":"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: application/json
Content-Length: length

{"id_controleur":"String"}