...
Code Block |
---|
{
public String report_id;
public List<ReportDataPojo> report;
}
ReportDataPojo
{
public int index;
public String data;
public String note;
public Date created_date;
public String event_id;
public String event_title;
public String item_id;
} |
Example
Code Block |
---|
curl -b cookies.txt -X GET "http://localhost:8185/report" > response.txt curl -b cookies.txt -X GET "http://localhost:8185/report/5331abfdb8e06221ba4a3b8a" > response.txt curl -b cookies.txt -X POST -d '{"report":[{"index":0,"data":"88343","note":"nothing to see here", "created_date":"May 1, 2014 01:39:49 PM UTC"},{"index":1,"data":"asfd","note":"nothing to see here"}]}' "http://localhost:8185/report" > response.txt curl -b cookies.txt -X PUT -d '{"report":[{"index":0,"data":"88343","note":"nothing to see here", "created_date":"May 1, 2014 01:39:49 PM UTC"},{"index":1,"data":"asfd","note":"nothing to see here", "event_id":"12345"}]}' "http://localhost:8185/report" > response.txt curl -b cookies.txt -X DELETE "http://localhost:8185/report" > response.txt |
...