Skip to content
Belikhun edited this page Sep 23, 2018 · 5 revisions

/test/logs - Lấy danh sách nhật ký

HTTP/1.1 GET /api/test/logs

  • Permission: everyone
  • Require Logged In: true

Success 200:

Field Type Description
queues array Danh sách bài trong hàng chờ
judging array Danh sách bài đang chấm
logs array Danh sách đã chấm xong

Example:

{
    "code": 0,
    "status": 200,
    "description": "Th\u00e0nh c\u00f4ng!",
    "user": "admin",
    "data": {
        "queues": [{
            "name": "area.exe",
            "lastmodify": "23\/09\/2018 12:06:11"
        }],
        "judging": [{
            "name": "bai1.pas",
            "lastmodify": "22\/09\/2018 23:12:45",
        }],
        "logs": [{
            "name": "bai2.pas",
            "out": "5,00",
            "lastmodify": "22\/09\/2018 23:13:01",
            "lastmtime": 1537632781,
            "url": "\/api\/test\/viewlog?f=admin[admin][bai2].pas.log"
        }, {
            "name": "bai3.pas",
            "out": "5,00",
            "lastmodify": "22\/09\/2018 23:13:13",
            "lastmtime": 1537632793,
            "url": "\/api\/test\/viewlog?f=admin[admin][bai3].pas.log"
        }]
    },
    "runtime": 0.0033419132232666016
}

Clone this wiki locally