GET /api.php?date=2020-05-14
param 'date' is date in format Y-m-d if absent date equal today
{
"result": [
{
"id": "6",
"source_id": "1",
"date": "2020-05-14",
"json_data": "{}",
{
"id": "7",
"source_id": "1",
"date": "2020-05-14",
"json_data": "{}"
},
{
"id": "8",
"source_id": "1",
"date": "2020-05-14",
"json_data": "{}"
},
{
"id": "9",
"source_id": "1",
"date": "2020-05-14",
"json_data": "{"}"
},
{
"id": "10",
"source_id": "1",
"date": "2020-05-14",
"json_data": ""}"
}
] }
POST /api.php
Content-Type: application/json
{
"data":"some data"
}
{"result": "data inserted"}
or
{"result": "source not found"}