Skip to content
Belikhun edited this page May 12, 2019 · 5 revisions

/test/viewlog - Xem tệp nhật ký

HTTP/1.1 GET /api/test/viewlog

  • Permission: everyone
  • Require Logged In: true

Parameter:

Field Method Type Description Required
f GET string Tên tệp *

Success 200:

Field Type Description
nothing here im lazy

Example:

{
    "code": 0,
    "status": 200,
    "description": "Th\u00e0nh c\u00f4ng!",
    "user": "belivipro9x99",
    "data": {
        "header": {
            "status": "passed",
            "user": "belivipro9x99",
            "name": "Belikhun",
            "problem": "aromatic",
            "problemName": null,
            "problemPoint": null,
            "point": 200,
            "testPassed": 20,
            "testFailed": 0,
            "description": "Dịch thành công",
            "error": [],
            "file": {
                "base": "aromatic",
                "name": "aromatic.pas",
                "extension": "pas",
                "logFilename": "admin[belivipro9x99][aromatic].pas",
                "lastModify": 1557638696
            }
        },
        "test": [
            {
                "status": "passed",
                "test": "test01",
                "point": 10,
                "runtime": 0.4344155,
                "detail": "Kết quả khớp đáp án!",
                "other": {
                    "output": null,
                    "answer": null,
                    "error": null
                }
            },
            {
                "status": "passed",
                "test": "test02",
                "point": 10,
                "runtime": 0.0533384,
                "detail": "Kết quả khớp đáp án!",
                "other": {
                    "output": null,
                    "answer": null,
                    "error": null
                }
            },
            {
                "status": "passed",
                "test": "test03",
                "point": 10,
                "runtime": 0.3118704,
                "detail": "Kết quả khớp đáp án!",
                "other": {
                    "output": null,
                    "answer": null,
                    "error": null
                }
            },
        ]
    },
    "runtime": 0.008721113204956055
}