Skip to content

test problems add api

Belikhun edited this page Mar 17, 2019 · 3 revisions

/test/problems/add - Tạo đề

HTTP/1.1 POST /api/test/problems/add

  • Permission: admin
  • Require Logged In: true

Parameter:

Field Method Type Description Required Default
id POST string ID đề *
name POST string Tên đề *
point POST number Điểm đề *
time POST number Thời gian chạy của đề 1
inptype POST string Dữ liệu vào Bàn Phím
outtype POST string Dữ liệu ra Màn Hình
acpt POST array string Danh sách đuôi tệp chấp nhận [pas, cpp, c, pp, exe, class, py, java]
img POST file Ảnh đính kèm
desc POST string Mô tả đề *
attm POST file Tệp đính kèm
test POST array string Danh sách test
token POST string API Token *

Example:

{
    "code": 0,
    "status": 200,
    "description": "Success!",
    "user": "admin",
    "data": [],
    "runtime": 0.05415487289428711
}
Clone this wiki locally