| GET, POST | /cl_json_log/{id_operateur} |
|---|
import java.math.*;
import java.util.*;
import net.servicestack.client.*;
public class dtos
{
public static class cl_json_logRequest
{
public String id_operateur = null;
public ArrayList<_json_log> logs = null;
public String getIdOperateur() { return id_operateur; }
public cl_json_logRequest setIdOperateur(String value) { this.id_operateur = value; return this; }
public ArrayList<_json_log> getLogs() { return logs; }
public cl_json_logRequest setLogs(ArrayList<_json_log> value) { this.logs = value; return this; }
}
public static class _json_log
{
public String id_controleur = null;
public String guid = null;
public String id_operateur = null;
public String type = null;
public String date_log = null;
public String date = null;
public String log = null;
public String getIdControleur() { return id_controleur; }
public _json_log setIdControleur(String value) { this.id_controleur = value; return this; }
public String getGuid() { return guid; }
public _json_log setGuid(String value) { this.guid = value; return this; }
public String getIdOperateur() { return id_operateur; }
public _json_log setIdOperateur(String value) { this.id_operateur = value; return this; }
public String getType() { return type; }
public _json_log setType(String value) { this.type = value; return this; }
public String getDateLog() { return date_log; }
public _json_log setDateLog(String value) { this.date_log = value; return this; }
public String getDate() { return date; }
public _json_log setDate(String value) { this.date = value; return this; }
public String getLog() { return log; }
public _json_log setLog(String value) { this.log = value; return this; }
}
public static class cl_json_logResponse
{
public String id_operateur = null;
public String getIdOperateur() { return id_operateur; }
public cl_json_logResponse setIdOperateur(String value) { this.id_operateur = value; return this; }
}
}
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
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: application/json
Content-Type: application/json
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: application/json
Content-Length: length
{"id_operateur":"String"}