| GET, POST | /cr_controle_camion/{id_controleur}/{id_tournee} |
|---|
import Foundation
import ServiceStack
public class cr_controle_camionRequest : Codable
{
public var id_controleur:String
public var id_tournee:String
public var cr_controles_camion:[_cr_controle_camion] = []
required public init(){}
}
public class _cr_controle_camion : Codable
{
public var id_controleur:String
public var id_tournee:String
public var id_formulaire:String
public var id_type_formulaire:String
public var id_type_reponse:String
public var value:String
public var date:String
required public init(){}
}
public class cr_controle_camionResponse : Codable
{
public var id_controleur:String
public var id_tournee:String
public var cr_controles_camion:[_cr_controle_camion] = []
required public init(){}
}
Swift cr_controle_camionRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /cr_controle_camion/{id_controleur}/{id_tournee} HTTP/1.1
Host: freemotion-staging.milliet.paris
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"id_controleur":"String","id_tournee":"String","cr_controles_camion":[{"id_controleur":"String","id_tournee":"String","id_formulaire":"String","id_type_formulaire":"String","id_type_reponse":"String","value":"String","date":"String"}]}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length
{"id_controleur":"String","id_tournee":"String","cr_controles_camion":[{"id_controleur":"String","id_tournee":"String","id_formulaire":"String","id_type_formulaire":"String","id_type_reponse":"String","value":"String","date":"String"}]}