Skip to content

Navigation Menu

Sign in
Sign up
Belikhun edited this page Jun 2, 2019 · 6 revisions

/test/rank - Lấy dữ liệu bảng xếp hạng

HTTP/1.1 POST /api/test/rank

  • Permission: everyone
  • Require Logged In: false

Success 200:

Field Type Description
list array Danh sách bài
rank array Dữ liệu xếp hạng

rank:

Field Type Description
username string Tên người dùng
point array Danh sách điểm
logFile array Danh sách tên của tệp nhật ký
name string Tên
total number Tổng điểm

Example:

{
 "code": 0,
 "status": 200,
 "description": "Thành công!",
 "user": "belivipro9x99",
 "data": {
 "list": [
 "accepted",
 "aromatic",
 "bai1",
 "bai2",
 "bai3",
 "bai4",
 "bridge",
 "failed",
 "flight",
 "passed",
 "sum"
 ],
 "rank": [
 {
 "status": {
 "aromatic": "passed",
 "bai1": "correct",
 "bai2": "correct",
 "bai3": "correct",
 "bai4": "correct",
 "bridge": "passed",
 "sum": "passed"
 },
 "point": {
 "aromatic": 200,
 "bai1": 50,
 "bai2": 50,
 "bai3": 50,
 "bai4": 50,
 "bridge": 200,
 "sum": 200
 },
 "logFile": {
 "aromatic": "admin[belivipro9x99][aromatic].pas",
 "bai1": "admin[belivipro9x99][bai1].pas",
 "bai2": "admin[belivipro9x99][bai2].pas",
 "bai3": "admin[belivipro9x99][bai3].pas",
 "bai4": "admin[belivipro9x99][bai4].pas",
 "bridge": "admin[belivipro9x99][bridge].pas",
 "sum": "admin[belivipro9x99][sum].pas"
 },
 "username": "belivipro9x99",
 "name": "Belikhun",
 "total": 800
 },
 {
 "status": {
 "passed": "passed"
 },
 "point": {
 "passed": 30
 },
 "logFile": {
 "passed": "passed"
 },
 "username": "passedtest",
 "name": null,
 "total": 30
 },
 {
 "status": {
 "failed": "failed"
 },
 "point": {
 "failed": 0
 },
 "logFile": {
 "failed": "failed"
 },
 "username": "failedtest",
 "name": null,
 "total": 0
 },
 {
 "status": {
 "accepted": "accepted"
 },
 "point": {
 "accepted": 0
 },
 "logFile": {
 "accepted": "accepted"
 },
 "username": "acceptedtest",
 "name": null,
 "total": 0
 },
 {
 "status": {
 "flight": "accepted"
 },
 "point": {
 "flight": 0
 },
 "logFile": {
 "flight": "rawlog"
 },
 "username": "qn12 hung",
 "name": null,
 "total": 0
 }
 ]
 },
 "runtime": 0.015424013137817383
}

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /