show all site stat
ZeroCool142 edited this page Jun 20, 2017
·
3 revisions
- URL: /stat/{site_id}
- Method: GET
-
URL Params:
-
Required:
site_id=[integer]
-
Required:
- Data Params: None
-
Success Response:
-
Code: 200
-
Content:
[ { "rank": 10, "page": { "id": 1, "founddatetime": "2017-06-15", "lastscandate": null, "url": "http://lenta.ru/news/putin", "site": { "id": 1, "name": "lenta.ru" } }, "person": { "id": 1, "name": "Putin123" } } ]
-
Code: 200
-
Error Response:
-
Code: 404
-
Content:
{errorMessage: "Statistics not found"}
-
Code: 404
- Simple Call:
$.ajax({
url: "/stat/1",
dataType: "json",
type : "GET",
success : function(r) {
console.log(r);
}
});