-
URL:
/stat/{site_id}/{person_id}
-
Method:
GET
-
URL Params:
-
Required:
site_id=[integer], person_id=[integer]
-
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" } } ]
-
Error Response:
-
Code: 404
-
Content:
{errorMessage: "Statistics not found"}
- Simple Call:
$.ajax({
url: "/stat/1/1",
dataType: "json",
type : "GET",
success : function(r) {
console.log(r);
}
});